Create TTS Task

Create a new Text-to-Speech (TTS) task.

Request Parameters

ParameterRequiredDescription
agentYesAgent identifier
tts_typeYesTTS voice type (e.g., openai-nova)
tts_audio_formatYesOutput format (see formats below)
tts_textYesArray of text strings to convert
webhook_urlNoURL for completion callback
tts_gap_start_msNoSilence at start (milliseconds)
tts_gap_during_msNoSilence between segments
tts_gap_end_msNoSilence at end

Audio Formats

FormatDescription
wav_16bit_32000hz_monoWAV 16-bit, 32kHz, mono
mp3_320kbps_monoMP3 320kbps, mono

Example

Select "TTSTaskRequestExample" or "TTSTaskRequestExampleWithWebhook" from the Examples dropdown.

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here!