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

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

Initialize the AssemblyAI STT plugin.

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

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

### Fields

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

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

<ParamField path="format_turns" type="bool" default="True" />

<ParamField path="keyterms_prompt" type="list[str] | None" default="None" />

<ParamField path="end_of_turn_confidence_threshold" type="float" default="0.5; pinned" />

<ParamField path="min_turn_silence" type="Optional[int]" default="800; pinned" />

<ParamField path="max_turn_silence" type="int" default="2000; pinned" />

<ParamField path="speech_model" type="Literal['universal-streaming-english', 'universal-streaming-multilingual', 'universal-3-5-pro', 'u3-rt-pro', 'u3-rt-pro-beta-1']" default="UNSET" />

<ParamField path="language_detection" type="Optional[bool]" default="None; pinned" />

<ParamField path="language_codes" type="Optional[str | list[str]]" default="None" />

<ParamField path="mode" type="Optional[Literal['min_latency', 'balanced', 'max_accuracy']]" default="UNSET" />

<ParamField path="prompt" type="Optional[str]" default="None" />

<ParamField path="agent_context" type="Optional[str]" default="None" />

<ParamField path="previous_context_n_turns" type="Optional[int]" default="None" />

<ParamField path="continuous_partials" type="Optional[bool]" default="None" />

<ParamField path="interruption_delay" type="Optional[int]" default="None" />

<ParamField path="vad_threshold" type="Optional[float]" default="None" />

<ParamField path="voice_focus" type="Optional[Literal['near-field', 'far-field']]" default="UNSET" />

<ParamField path="voice_focus_threshold" type="Optional[float]" default="None" />

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

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

<ParamField path="base_url" type="Optional[str]" default="None" />
