> ## 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

> TypeScript 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

Create a TTS instance configured for Deepgram Aura.

```ts theme={null}
import { DeepgramTTS } from '@zeroruntime/js-sdk/inference';  // same fields, through the gateway, no vendor key
import { DeepgramTTS } from '@zeroruntime/js-sdk/plugins';  // direct to the vendor, with your key
```

### Options

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

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

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

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

<ParamField path="max_connection_age_sec" type="number" default="300" />
