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.
Voice format: Telnyx.NaturalHD.<voice>
Pre-built voices backed by Rime Arcana. 9 languages: en, fr, de, es, ar, hi, ja, he, pt.
Voice Samples
Voice Language Gender Sample Telnyx.NaturalHD.astraen-US Female Telnyx.NaturalHD.albionen-US Male Telnyx.NaturalHD.amarantefr-FR Female Telnyx.NaturalHD.lunaen-US Female
WebSocket
Query Parameters
wss://api.telnyx.com/v2/text-to-speech/speech?voice=Telnyx.NaturalHD.astra&audio_format=mp3
Parameter Type Default Description audio_formatstring mp3mp3, linear16.sample_rateinteger 240008000, 16000, 22050, 24000, 44100, 48000, 96000.
Voice Settings
Send in the init frame ({"text": " "}):
Field Type Default Description voice_speedfloat 1.0Speech rate multiplier.
{
"text" : " " ,
"voice_settings" : {
"voice_speed" : 0.9
}
}
REST API
Fields
Field Type Default Description voice_speedfloat 1.0Speech rate multiplier. output_typestring binary_outputbinary_output, base64_output, or audio_id.
Response
Default (binary_output): chunked audio bytes with Content-Type: audio/mpeg (or audio/wav, audio/pcm).
With output_type: "base64_output": JSON with base64-encoded audio.
With output_type: "audio_id": JSON with an audio_url for deferred retrieval.