Plan Telnyx text to speech with Fish Audio: evaluate call control, media streaming, voice identity, codecs, latency, fallback and cost separation.
Telnyx text to speech can use Telnyx's own TTS API and supported voice engines, or it can sit on the telephony side of an application that generates audio elsewhere. Fish Audio fits the second model when the team needs a specific expressive or cloned voice and can operate the media bridge.
This is not a claim of a native Fish Audio provider listing. It is a source-checked integration plan based on Telnyx's current REST, WebSocket and Voice API surfaces.
Telnyx provides phone numbers, call control, programmable voice, media streaming and a TTS API with access to several native or provider voice engines. Fish Audio provides expressive synthesis and reusable voice identity through a separate API.
The current official Telnyx TTS product describes REST generation, WebSocket streaming and in-call playback. The Telnyx Voice API documents call control and bidirectional media streaming over WebSockets.
Choose the boundary before writing code:
| Architecture | Telephony and media | Speech generation | Best when |
|---|---|---|---|
| Telnyx native TTS | Telnyx | Telnyx-supported model | The listed voice meets the product brief |
| Fish Audio with media bridge | Telnyx | Fish Audio | A specific Fish voice is required and the media path is supported |
| Pre-generated Fish prompts | Telnyx playback | Fish Audio | Prompts are fixed and can be hosted as approved audio files |
For fixed IVR prompts, generate audio ahead of time, store it behind authenticated or controlled HTTPS delivery, and play the approved file through the call path. This removes live model latency from the caller experience.
For dynamic replies:
Keep model and provider credentials on the server. The call client must not receive a Fish Audio API key.
Use the exact media contract Telnyx requires for the selected product. Do not infer it from the voice API website or a browser player.
Telephone-ready paths commonly involve 8 kHz narrowband audio, while AI pipelines may generate at 16 kHz or 24 kHz before downsampling. Confirm:
The telephony TTS API guide documents the sample-rate and PCM failures that sound like static or chipmunk audio.
Use one script set and the same phone path. Test a greeting, a long answer, a product name, a price and an interruption.
Telnyx native TTS simplifies vendor and credential management. It is the better default when a current Telnyx voice meets the brand, language and rights requirements. Fish Audio is the better fit when a specific reusable voice, cloning workflow or very large voice library is the hard requirement.
Do not compare isolated provider demos. A voice that sounds better in a browser may lose its advantage after audio conversion, network transport and telephone compression.
Telnyx must stop or discard queued audio when the caller starts speaking. Your adapter must cancel the Fish Audio request and prevent late chunks from the old turn from playing.
At minimum, test:
See voice-agent TTS fallback for a fault-injection matrix.
Fish Audio uses one-time credits; API access begins with the $99 Studio pack. Telnyx prices calls, numbers, media and TTS under its current account terms.
Calculate:
The TTS API pricing guide covers Fish Audio character budgeting.
Track p50 and p95 first-audio latency, dropped media frames, audio-format errors, generation failures, interruptions, fallback rate and cost per completed call.
Keep a call-level correlation ID across Telnyx call control and Fish Audio generation. Do not log API keys, raw media or complete transcripts without a defined retention policy.
Review recordings from each selected region and phone network. A codec issue can appear on one carrier while staging from a softphone sounds correct.
talk and stream.Telnyx has its own TTS API and supported voice engines. Fish Audio is a separate API; use a documented provider path or a media bridge that the application can operate.
No native Fish Audio integration is claimed here. Verify the current Telnyx provider list before treating one service as native to the other.
Telnyx documents REST TTS, WebSocket streaming and playback through Voice API or TeXML. Select the path that matches the current voice model, audio format and credential contract.
Measure p95 from the caller's final syllable to the first audible reply, including Telnyx transport, Fish Audio generation, buffering and playback.
Fish Audio uses prepaid character credits. Telnyx charges for numbers, calls, media and TTS under its current pricing.