New to LiveKit? This guide assumes you’re familiar with the LiveKit Agent Framework. Start there to learn how agents work, then head back here for Telnyx-specific setup.
Install the plugin
The Telnyx plugin is maintained by Telnyx and updated as new models, voices, and features become available.Complete example
Here’s a fully working voice agent using Telnyx STT, TTS, and LLM:Models and options
The example above uses our recommended defaults. Here’s how to configure each model with all available options.Speech-to-Text (STT)
Telnyx hosts Deepgram models on dedicated GPUs. Three models available:Nova-3 (recommended)
Latest generation, best accuracy.Nova-2
Previous generation, stable and reliable. Uses weighted keyword boosting.Flux
Experimental, with built-in end-of-turn detection.Text-to-Speech (TTS)
Provider.Model.voice_name. To find a voice:
- Browse the voice library
- Copy the voice ID (e.g.
Telnyx.NaturalHD.astra) - Pass it to
telnyx.TTS(voice="...")
Parameters
| Parameter | Default | Description |
|---|---|---|
voice | — | Voice ID (e.g. Telnyx.NaturalHD.astra) |
sample_rate | 24000 | Audio sample rate in Hz |
LLM
Telnyx hosts models with an OpenAI-compatible API. No concurrency limits. Use the.with_telnyx() helper on the standard OpenAI plugin:
Hosted models
These run on Telnyx infrastructure — no external API key needed, just yourTELNYX_API_KEY:
moonshotai/Kimi-K2.5zai-org/GLM-5MiniMaxAI/MiniMax-M2.5