Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

Your authentication credentials. For Basic authentication, please populate Basic $INWORLD_API_KEY. You can create a key in one command with the Inworld CLI: inworld workspace add-key.

Path Parameters

name
string
required

Full operation resource name returned by the async or batch synthesis endpoint, in the format workspaces/{workspace}/ttsAsyncJobs/{job}/operations/{operation} or workspaces/{workspace}/ttsBatchJobs/{batch}/operations/{operation}. The embedded slashes are part of the path.

Response

A successful response.

A google.longrunning.Operation tracking an asynchronous or batch synthesis job.

name
string

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.

Example:

"workspaces/{workspace}/ttsAsyncJobs/8f14e45f-ceea-4673-93d8-04f724c8a1b2/operations/1784837936461-p0sEhU"

metadata
object | null

Service-specific metadata associated with the operation. Not populated for TTS jobs yet; job metadata is planned for a later release, so do not write code that depends on this field staying absent.

done
boolean

If false, the job is still running. If true, the job has finished and exactly one of error or response is set.

error
object
response
object

Set when the job succeeded. Its @type identifies which kind: an async job carries SynthesizeSpeechAsyncResponse, a batch job SynthesizeSpeechBatchResponse.