TextToSpeech
Get async operation
Inworld TTS API reference: check the status of an async or batch speech synthesis job and get its results when it finishes.
/lro/v1alpha/{name}Server-assigned operation resource name, in the format workspaces/{workspace}/ttsAsyncJobs/{job}/operations/{operation} for async jobs or workspaces/{workspace}/ttsBatchJobs/{batch}/operations/{operation} for batch jobs. Pass it verbatim as the path of the Get operation endpoint to poll for completion.
Service-specific metadata associated with the operation. A batch job carries SynthesizeSpeechBatchMetadata counting the items finished so far, from the moment the batch is accepted through to the terminal response. An async job carries none: it is a single unit of work, so done already says everything there is to know.
Show child attributes
Number of items in the batch. Fixed when the batch is accepted, so it is readable before any work starts.
Items synthesized successfully so far. A zero counter is spelled out as 0 on the submit response but omitted from the poll response, so read it with a default rather than testing whether the key is present.
Items that finished with an error so far. Item errors do not fail the batch — it still completes, and every item keeps its own entry in the results file. Omitted from the poll response while zero.
If false, the job is still running. If true, the job has finished and exactly one of error or response is set.
Show child attributes
The error code, as specified by gRPC status codes.