CreateSpeechRequest
| Property | Type | Required | Description |
|---|---|---|---|
input | string | Yes | The text to generate audio for. The maximum length is 4096 characters. |
model | string | Yes | One of the available TTS models. |
voice | string | Yes | The voice to use when generating the audio. |
instructions | string | No | Control the voice of your generated audio with additional instructions. Default: "". |
format | enum | No | The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm. One of: mp3, opus, aac, flac, wav, pcm. Default: "mp3". |
speed | number | No | The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default. Default: 1. |
stream_format | enum | No | The format to stream the audio in. Supported formats are sse and audio. sse is not supported for tts-1 or tts-1-hd. One of: sse, audio. Default: "audio". |
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.