GET
/
tts_result
/
{run_id}

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
headerrequired

Path Parameters

run_id
integer | null
required

Response

200 - application/json

The response is of type string.