Skip to main content

Telnyx Voice: TTS — Documentation Index

TTS documentation within the Voice section of the Telnyx developer docs (https://developers.telnyx.com). Root index: https://developers.telnyx.com/llms.txt · Voice index: https://developers.telnyx.com/development/llms/voice-llms-txt.md · Full content for this subsection: https://developers.telnyx.com/development/llms/voice-tts-llms-full-txt.md

  • Overview: Synthesize natural speech from text via WebSocket streaming, REST API, or in-call playback.

WebSocket Streaming

  • Lifecycle: How the Telnyx Text-to-Speech WebSocket endpoint works for real-time streaming, including connection, text messages, audio frames, and shutdown signals.
  • Configuration: Configuration surfaces for Telnyx Text-to-Speech WebSocket streaming, including connection-time query parameters and per-message voice settings.
  • Messages: Reference for WebSocket frame types — client-to-server text messages and server-to-client audio frames — used in the Telnyx Text-to-Speech streaming API.
  • Errors: WebSocket TTS error codes and troubleshooting tips for handshake failures, authentication issues, and runtime streaming errors on the Telnyx platform.
  • Examples: Working Python and JavaScript code samples showing how to stream text-to-speech audio over the Telnyx WebSocket TTS endpoint with basic and advanced setups.

REST API

  • Overview: Single-request text-to-speech with HTTP chunked streaming — start playing before synthesis finishes.
  • Request: REST TTS request body fields — text, voice, output type, and provider-specific settings.
  • Response: REST TTS response formats — streaming audio, base64, and async retrieval.
  • Examples: Code examples for the Telnyx Text-to-Speech REST API showing OpenAI SDK compatibility, synchronous and streaming playback, and async retrieval.
  • API Reference: OpenAPI reference for the Telnyx Text-to-Speech REST endpoints, including the generate speech endpoint and request/response schemas for all parameters.

Providers

  • Overview: Overview of Telnyx native text-to-speech models, comparing latency, quality, language coverage, and expressive control for the TTS REST API.
  • Natural: Telnyx Natural is a low-latency English text-to-speech model backed by Rime Mist, designed for real-time voice agents and conversational applications.
  • NaturalHD: Telnyx NaturalHD is a high-fidelity multilingual text-to-speech model backed by Rime Arcana, offering studio-quality voices for premium voice applications.
  • KokoroTTS: Telnyx KokoroTTS is a lightweight, lowest-latency text-to-speech model ideal for real-time voice agents and interactive applications on the Telnyx TTS API.
  • Qwen3TTS: Telnyx Qwen3TTS provides high-quality voice cloning with native support for 11 languages, ideal for multilingual voice agents on the Telnyx TTS API.
  • Ultra: Telnyx Ultra text-to-speech delivers sub-100ms latency across 44 languages, available exclusively through the TTS REST API for ultra-fast voice synthesis.
  • Grok: xAI Grok voices for expressive, multilingual text-to-speech in Telnyx Voice AI Assistants.
  • Bayan: Telnyx Bayan is an Arabic text-to-speech model covering 13 dialects plus English, ideal for Arabic-language voice agents on the Telnyx TTS API.
  • Sukhan: Telnyx Sukhan is an Urdu text-to-speech model with a curated set of 14 voices, ideal for Urdu-language voice agents on the Telnyx TTS API.
  • Rime: Configure Rime as a text-to-speech provider on Telnyx with Coda and ArcanaV3 models, voice format strings, speed control, and language coverage.
  • Minimax: Configure Minimax as a text-to-speech provider on Telnyx with expressive voices and fine-grained speed, volume, and pitch controls per request.
  • Resemble: Configure Resemble AI as a text-to-speech provider on Telnyx using your own Resemble API key, with voice cloning and custom voice support.
  • Inworld: Configure Inworld as a text-to-speech provider on Telnyx with Mini low-latency, Max high-quality, and TTS-2 latest-generation models, voice format strings, and language support.
  • xAI: xAI Grok TTS provider — expressive multilingual voices with speech tags and auto language detection.
  • Fish Audio: Configure Fish Audio as a text-to-speech provider on Telnyx with curated voices, cross-lingual synthesis, and multiple audio formats and sample rates.
  • AWS Polly: Configure AWS Polly as a text-to-speech provider on Telnyx, with neural, generative, and long-form synthesis engines and voice format strings.
  • SSML Tags: Programmable voice with SSML tags from Telnyx - perfect for your
  • Azure: Configure Microsoft Azure Speech as a text-to-speech provider on Telnyx, with multilingual neural voices, voice format strings, and SSML support.
  • ElevenLabs: Configure ElevenLabs as a text-to-speech provider on Telnyx using your own ElevenLabs API key, with voice cloning and premium voice selection.

Other

  • Pronunciation Dictionaries: Control how specific words are spoken during TTS synthesis with custom pronunciation dictionaries.
  • In-Call Playback: Play Telnyx text-to-speech audio during live voice calls using the Programmable Voice API or TeXML, with options for streaming and per-call voice selection.
  • Pricing: Pricing for the Telnyx Text-to-Speech REST API, including per-character rates by engine, voice tier, and supported provider model.

API Reference (TTS)

Text To Speech Commands

  • List available voices: Retrieve a list of available voices from one or all TTS providers. When provider is specified, returns voices for that provider only. Otherwise, returns voic…