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

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

Create an STT instance configured for Sarvam AI.

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

### Options

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

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

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

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

<ParamField path="mode" type="'transcribe' | 'translate' | 'verbatim' | 'translit' | 'codemix' | null" default="null" />

<ParamField path="high_vad_sensitivity" type="boolean | null" default="null" />

<ParamField path="flush_signal" type="boolean | null" default="null" />

<ParamField path="translation" type="boolean" default="false" />

<ParamField path="prompt" type="string | null" default="null" />
