Voice format:Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
xAI.<VoiceId>
xAI Grok voices are expressive, multilingual text-to-speech voices. They support inline speech tags for pauses, vocal sounds, emphasis, pitch, pace, and intensity.
Voices
| Voice | Voice ID | Use for |
|---|---|---|
| Ara | xAI.ara | Warm, conversational assistant experiences |
| Eve | xAI.eve | General-purpose voice assistant experiences |
| Leo | xAI.leo | Confident, direct interactions |
| Rex | xAI.rex | Characterful or energetic interactions |
| Sal | xAI.sal | Distinctive conversational tone |
WebSocket
xAI Grok voices are not available on the public TTS WebSocket API. Use the REST API for direct text-to-speech generation, or use xAI Grok voices with AI Assistants.REST API
Fields
| Field | Type | Default | Description |
|---|---|---|---|
language | string | auto | Language code, or auto to detect automatically. |
output_format | string | mp3 | mp3, wav, pcm, mulaw, or alaw. |
sample_rate | integer | 24000 | 8000, 16000, 22050, 24000, 44100, or 48000. |
output_type | string | binary_output | binary_output, base64_output, or audio_id. |
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.
Expressive speech tags
Use speech tags inline intext when you want more expressive delivery.
| Tag | Use for |
|---|---|
[pause] | A short natural pause |
[long-pause] | A longer pause for topic transitions or important moments |
[laugh], [chuckle], [giggle] | Natural laughter or amused reactions |
[sigh], [breath], [inhale], [exhale] | Breath and sigh sounds |
| <whisper> | Whispered delivery |
| <soft> | Softer delivery |
| <loud> | Louder delivery |
| <emphasis> | Emphasized delivery |
| <slow>, <fast> | Slower or faster pace |
| <higher-pitch>, <lower-pitch> | Higher or lower pitch |
AI Assistants
For AI Assistants, choose an xAI Grok voice such asxAI.eve and enable Expressive Mode to let the assistant decide when speech tags improve the caller experience.
AI Assistants
Build voice AI assistants using xAI Grok voices with Expressive Mode.
TTS REST API
Generate speech directly with REST TTS requests.