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

# Azure

> JavaScript API reference for the azure realtime models plugin.

## TurnDetectionConfig

Server-side voice-activity / turn-detection settings for AzureVoiceLive.

### Constructor

```typescript theme={null}
new TurnDetectionConfig(opts: { type?: string; threshold?: number; prefixPaddingMs?: number; silenceDurationMs?: number; createResponse?: boolean; interruptResponse?: boolean; })
```

<ParamField path="type" type="string" />

<ParamField path="threshold" type="number" />

<ParamField path="prefixPaddingMs" type="number" />

<ParamField path="silenceDurationMs" type="number" />

<ParamField path="createResponse" type="boolean" />

<ParamField path="interruptResponse" type="boolean" />

***

## InputAudioTranscriptionConfig

Input-audio transcription settings for AzureVoiceLive.

### Constructor

```typescript theme={null}
new InputAudioTranscriptionConfig(opts: { model?: string })
```

<ParamField path="model" type="string" />

***

## AzureVoiceLiveConfig

Session configuration for the AzureVoiceLive realtime speech-to-speech provider.

### Constructor

```typescript theme={null}
new AzureVoiceLiveConfig(opts: { model?: string; voice?: string; endpoint?: string | null; modalities?: string[]; temperature?: number | null; maxResponseOutputTokens?: number | string | null; turnDetection?: TurnDetectionConfig | null; inputAudioTranscription?: InputAudioTranscriptionConfig | null; toolChoice?: string; })
```

<ParamField path="model" type="string" />

<ParamField path="voice" type="string" />

<ParamField path="endpoint" type="string | null" />

<ParamField path="modalities" type="string[]" />

<ParamField path="temperature" type="number | null" />

<ParamField path="maxResponseOutputTokens" type="number | string | null" />

<ParamField path="turnDetection" type="TurnDetectionConfig | null" />

<ParamField path="inputAudioTranscription" type="InputAudioTranscriptionConfig | null" />

<ParamField path="toolChoice" type="string" />

***

## AzureVoiceLive

Azure Voice Live realtime speech-to-speech provider.

Creates a configured Azure Voice Live provider (full speech-to-speech) for use in a voice agent.

### Constructor

```typescript theme={null}
new AzureVoiceLive(opts: AzureVoiceLiveOptions)
```

<ParamField path="apiKey" type="string">
  Azure Voice Live API key. Falls back to the `AZURE_VOICE_LIVE_API_KEY` env var.
</ParamField>

<ParamField path="config" type="AzureVoiceLiveConfig">
  Session config. Default: an AzureVoiceLiveConfig with defaults.
</ParamField>

<ParamField path="endpoint" type="string">
  Endpoint override. Falls back to `config.endpoint`, then the `AZURE_VOICE_LIVE_ENDPOINT` env var, then `''`.
</ParamField>

### cleanup

```typescript theme={null}
cleanup(): Promise<void>
```

### close

```typescript theme={null}
close(): Promise<void>
```

### getRuntimeConfig

```typescript theme={null}
getRuntimeConfig(): Record<string, any>
```

<ResponseField name="returns" type="Record<string, any>" />
