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

# Sarvamai

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

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

## SarvamAISTT

Initialize the SarvamAI STT plugin with WebSocket support.

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

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

### Fields

<ParamField path="model" type="str" default="saaras:v3" />

<ParamField path="language" type="str" default="en-IN" />

<ParamField path="input_sample_rate" type="int" default="48000" />

<ParamField path="output_sample_rate" type="int" default="16000" />

<ParamField path="mode" type="Literal['transcribe', 'translate', 'verbatim', 'translit', 'codemix'] | None" default="UNSET" />

<ParamField path="high_vad_sensitivity" type="bool | None" default="None" />

<ParamField path="flush_signal" type="bool | None" default="None" />

<ParamField path="translation" type="bool" default="False" />

<ParamField path="prompt" type="str | None" default="None" />
