Tts

Turn text into speech in a voice you choose, with pronunciations you control. Speak a sentence or stream speech as it is made.

The voice list has every provider's voices, one row per voice, with filters and counts (gender, accent, language, style, model), each provider's models with their cost and default, and your organization's custom voices. Speaking runs the same path as a call: text normalization, your organization's pronunciation dictionary, the voice's provider and model, voice controls, and the speech cache. speak returns a link to the audio (async mode for long text), speak/stream streams it back as it is made, and the speech socket takes many pieces of text over one connection. Speech is billed per character.

The pronunciation dictionary controls how voices say words on your calls. Entries come in three layers, later ones winning on the same term: the platform's built-in entries (global), entries for your organization's domain, and your organization's own (org), the only layer you can change. An entry has a respelling every provider reads and optional IPA for providers that accept phonemes. Calls pick up a change within about ten minutes; these routes always read fresh.

Use this resource to work with voices and speech directly; to change the voice an agent uses on calls, edit the agent's tts settings (Entities API).

Operations

Channels

Objects

IpaSuggestion

PronunciationEntry

PronunciationPreview

SampleSentence

SpeechResult

VoiceList

VoiceOption