Send text and a voice, get the complete audio back in the reply. Choose raw PCM, WAV, MP3, or 8 kHz μ-law and A-law for phone calls.
Synthesize Speech
Convert text to speech and return the audio in the response body.Arguments
Send a JSON body (Content-Type: application/json). Leave out a field instead of sending null: a null returns 422.
A voice from List voices.
auto, en-US, en-GB, en-IN, en-AU, hi, bn, ta, te, mr, gu or kn. The voice must speak it, or the request returns 400 language_not_supported. There is no plain en.Audio format. Default: raw
pcm_s16le at 24000 Hz. See Output format.Up to 100 inline rules:
{"word", "value", "kind"}. kind is ipa, arpa or respell. See Pronunciation.A saved lexicon to apply.
Output format
Response
Returns200 with the audio as the body. Content-Type is application/octet-stream (raw), audio/wav or audio/mpeg.
On error, returns a JSON body. See Errors.