Text to Speech
Handshake
GET
Path parameters
voice_id
The unique identifier for the voice to use in the TTS process.
Query parameters
model_id
The model ID to use
language_code
The ISO 639-1 language code (for Turbo v2.5 models only)
enable_logging
Whether to enable logging of the request
enable_ssml_parsing
Whether to enable SSML parsing
optimize_streaming_latency
Latency optimization level (deprecated)
output_format
The output audio format
inactivity_timeout
Timeout for inactivity before connection is closed
sync_alignment
Whether to include timing data with every audio chunk
auto_mode
This parameter focuses on reducing the latency by disabling the chunk schedule and all buffers. It is only recommended when sending full sentences or phrases, sending partial phrases will result in highly reduced quality. By default it’s set to false.
Send
Initialize Connectionobject
OR
Send Textobject
OR
Close Connectionobject
Receive
Audio Outputobject
OR
Final Outputobject