Custom IVR -- Generate Speech

Reads a short text aloud with a voice and returns the audio as a Base64-encoded MP3, for example to record a greeting without uploading a file. This does not create a custom IVR recording (the text-to-speech service may cache the generated audio): save the audio with Custom IVR -- Create by sending it in the "file" field. The text is plain text of 1 to 500 characters, which keeps the audio small enough to be saved that way. A voice name that is not in the list answers 400, a voice the text-to-speech service refuses answers 422, and a text-to-speech outage answers 503 with a Retry-After header.

Requires the onboarding:write scope: this is a POST action that makes a paid text-to-speech call every time, so a key must be granted it on purpose.

Requires scope: onboarding:write

Rate limit: 10 per minute.

Body Params
string
required

The plain text to read, from 1 to 500 characters. SSML is not supported.

string
enum
Defaults to joanna

The voice that reads the text, for example joanna, matthew or lupe. Defaults to joanna.

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json