Get Text to Speech Result
Retrieves the result of a specific Text to Speech run using the provided run_id
.
Retrieves the result of a specific Text-to-Speech run using the provided run_id
. Depending on the specified output_type
, this endpoint returns one of two responses:
raw_bytes
: A streaming response containing the Text-to-Speech generated audio in FLAC format (Used by default).file_url
: A JSON containing a URL pointing to the stored Text-to-Speech output audio file.
Example for Saving the File:
stream=True
is required to stream the file when raw_bytes
is specified, else the file will be downloaded in memory and then saved to disk.Authorizations
The x-api-key
is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
Path Parameters
The unique identifier for the run, which was generated during the creation process and returned upon task completion.
Query Parameters
The type of the Text-to-Speech output to return. Either streamable audio bytes or a URL to the generated file.
raw_bytes
, file_url
Response
The generated audio file bytes in FLAC format, representing the speech created from the Text to Speech task.