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

# Assemblyai

> TypeScript API reference for the assemblyai speech-to-text provider.

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

## AssemblyAISTT

Create an STT instance configured for AssemblyAI Universal Streaming.

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

### Options

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

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

<ParamField path="format_turns" type="boolean" default="true" />

<ParamField path="keyterms_prompt" type="string[] | null" default="null" />

<ParamField path="end_of_turn_confidence_threshold" type="number" default="0.4" />

<ParamField path="min_turn_silence" type="number | null" default="560" />

<ParamField path="max_turn_silence" type="number" default="2400" />

<ParamField path="speech_model" type="'universal-streaming-english' | 'universal-streaming-multilingual' | 'universal-3-5-pro' | 'u3-rt-pro' | 'u3-rt-pro-beta-1'" default="universal-streaming-english" />

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

<ParamField path="language_codes" type="string | string[] | null" default="null" />

<ParamField path="mode" type="'min_latency' | 'balanced' | 'max_accuracy' | null" default="null" />

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

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

<ParamField path="previous_context_n_turns" type="number | null" default="null" />

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

<ParamField path="interruption_delay" type="number | null" default="null" />

<ParamField path="vad_threshold" type="number | null" default="null" />

<ParamField path="voice_focus" type="'near-field' | 'far-field' | null" default="null" />

<ParamField path="voice_focus_threshold" type="number | null" default="null" />

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

<ParamField path="region" type="string" default="US" />

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