> ## Documentation Index
> Fetch the complete documentation index at: https://visionagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Telnyx STT

[Telnyx](https://telnyx.com/) provides streaming speech-to-text over WebSocket. The plugin resamples audio to your configured rate, sends it as raw `linear16` frames, and emits transcripts as they arrive.

> [!NOTE]
>
> Vision Agents uses [Stream Video](https://getstream.io/video/) for real-time WebRTC transport by default. [External WebRTC transports](https://visionagents.ai/integrations/introduction-to-integrations.md#edge-transport) are supported as well. Most AI providers offer free tiers to get started.

> [!NOTE]
>
> Get your Telnyx API key from the [Telnyx Mission Control Portal](https://portal.telnyx.com/).

> [!TIP]
>
> Telnyx also provides [text-to-speech](https://visionagents.ai/integrations/tts/telnyx.md), an [LLM](https://visionagents.ai/integrations/llm/telnyx.md), and [PSTN telephony](https://visionagents.ai/integrations/telephony/telnyx.md). You can use all four in the same agent.

> [!WARNING]
>
> Telnyx STT does not emit VAD signals, so pair it with a turn detector such as [Smart Turn](https://visionagents.ai/integrations/turn-detection/smart-turn.md).

## Installation

```sh theme={null}
uv add "vision-agents[telnyx]"
```

## Quick start

```python theme={null}
from vision_agents.core import Agent, User
from vision_agents.plugins import getstream, smart_turn, telnyx

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Assistant", id="agent"),
    instructions="You are a helpful voice assistant.",
    stt=telnyx.STT(),
    llm=telnyx.LLM(),
    tts=telnyx.TTS(),
    turn_detection=smart_turn.TurnDetection(),
)
```

> [!WARNING]
>
> Set `TELNYX_API_KEY` in your environment or pass `api_key` directly.

## Parameters

```python theme={null}
stt = telnyx.STT(
    transcription_engine="Telnyx",
    language="en",
    sample_rate=16000,
    interim_results=False,
)
```

| Name | Type | Default | Description |
| - | - | - | - |
| `transcription_engine` | `str` | `"Telnyx"` | Engine to transcribe with (e.g. `Telnyx`, `Deepgram`, `Speechmatics`, `Soniox`) |
| `language` | `str` | `"en"` | Language code |
| `sample_rate` | `int` | `16000` | Rate in Hz audio is resampled to (use `8000` for telephony audio) |
| `interim_results` | `bool` | `False` | Emit partial transcripts (honoured per engine) |
| `model` | `str` | `""` | Optional engine-specific model id |
| `api_key` | `str` | `None` | API key (defaults to `TELNYX_API_KEY` env var) |

> [!TIP]
>
> Set `sample_rate=8000` when transcribing telephony audio from the [Telnyx](https://visionagents.ai/integrations/telephony/telnyx.md) or [Twilio](https://visionagents.ai/integrations/telephony/twilio.md) plugins to avoid upsampling PCMU frames.

## Engines and interim results

Measured against the live API with the same audio, `Speechmatics` and `Soniox` stream partial transcripts, while `Telnyx` and `Deepgram` accept the parameter and return finals only.

```python theme={null}
stt = telnyx.STT(transcription_engine="Speechmatics", interim_results=True)
```

The engine catalogue is served by Telnyx and is not validated locally.

## Next steps

> [card] [Telnyx TTS](https://visionagents.ai/integrations/tts/telnyx.md)
>
> Streaming text-to-speech

> [card] [Telnyx LLM](https://visionagents.ai/integrations/llm/telnyx.md)
>
> OpenAI-compatible chat completions

> [card] [Telnyx Telephony](https://visionagents.ai/integrations/telephony/telnyx.md)
>
> PSTN calls via Call Control

> [card] [Turn Detection](https://visionagents.ai/ai-technologies/turn-detection.md)
>
> Pair with a turn detector


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.