GET
/
tts-result
/
{run_id}

This endpoint upon completion of the run, it returns URLs for the audio and dialogue files, along with the transcription if requested.

Example for Saving the File:

tts_result = requests.get(
    f"https://client.camb.ai/apis/tts-result/3444",
    headers={"x-api-key": API_KEY}, stream=True
)

with open("saved_stream.wav", "wb") as f:
    for chunk in tts_result.iter_content(chunk_size=1024):
        f.write(chunk)
stream=True is required to stream the file else the file will be downloaded in memory and then saved to disk.

Authorizations

x-api-key
string
header
required

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

run_id
integer
required

The unique identifier for the run, which was generated during the creation process and returned upon task completion.

Response

200 - audio/wav

The generated audio file bytes in WAV format, representing the speech created from the Text to Speech task.