Soniox.tts-rt-v2.<VoiceId>
Soniox is a third-party TTS provider with real-time, streamed synthesis. Every Soniox voice can speak any of the supported languages, and each voice has its own accent, for example British, Brazilian Portuguese, or Japanese: choose the voice for its sound and accent, and set language to the language of the text.
Voices
Soniox offers a catalog of around 200 voices undertts-rt-v2. Browse the full catalog via the Voices API or the available voices page:
Models
Language
Setlanguage to the two-letter ISO 639-1 code of the text, for example en, it, or pt. The default is en.
SSML is not supported. Send plain text.
Voice Settings
Limits
A request produces up to two minutes of audio. Split longer text into several requests.WebSocket
Soniox is available on the TTS WebSocket API. Select the voice with thevoice query parameter and pick the output with audio_format and sample_rate. Send language, speed, and reduce_silence in voice_settings on the init frame.
REST API
Fields
Response
Default (binary_output): chunked audio bytes.
With output_type: "base64_output": JSON with base64-encoded audio.
With output_type: "audio_id": JSON with an audio_url for deferred retrieval.
Audio Formats & Sample Rates
In-Call Playback
Soniox voices work with the Call Controlspeak, gather_using_speak, and conference speak commands, and with TeXML <Say>.
- Send plain text:
payload_typemust betext. - Set
languageto the two-letter ISO 639-1 code of the text, for exampleit. voice_settingsacceptsspeedandreduce_silence.
AI Assistants
Choose a Soniox voice such asSoniox.tts-rt-v2.Emma in the assistant’s voice settings. voice_speed maps to the Soniox speed setting and accepts 0.7 to 1.3. Soniox voices speak every supported language, so one voice can serve an assistant that changes language during a call.
AI Assistants
Build voice AI assistants using Soniox voices.
TTS REST API
Generate speech directly with REST TTS requests.