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

# Deepgram

> Python API reference for the deepgram text-to-speech provider.

<Card title="Usage guide" icon="book" href="/plugins/tts/deepgram" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## DeepgramTTS

Initialize the Deepgram TTS plugin.

Slot: tts. Route: plugins -- direct to the vendor, with DEEPGRAM\_API\_KEY or
an explicit api\_key.

The target accepts \*\*kwargs, so the fields below are what it documents
rather than everything it tolerates; the rest go through `extra`.

```python theme={null}
from zeroruntime.plugins import DeepgramTTS  # direct to the vendor, with your key
from zeroruntime.inference import DeepgramTTS  # same fields, through the gateway, no vendor key
```

### Fields

<ParamField path="model" type="str" default="aura-2-andromeda-en" />

<ParamField path="encoding" type="str" default="linear16" />

<ParamField path="sample_rate" type="int" default="24000" />

<ParamField path="base_url" type="str" default="wss://api.deepgram.com/v1/speak" />

<ParamField path="max_connection_age_sec" type="float" default="300.0" />
