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

> Python API reference for the azure realtime models plugin.

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

## AzureVoiceLive

Realtime speech-to-speech integration for Azure Voice Live.

Wraps the Azure Voice Live realtime model so it can be used as a full
speech-to-speech provider within the runtime. Configuration is supplied
through an `AzureVoiceLiveConfig` instance and resolved into a flat
parameter map for the runtime.

### Constructor

```python theme={null}
AzureVoiceLive(*, api_key: 'str | None' = None, config: 'AzureVoiceLiveConfig | None' = None, endpoint: 'str | None' = None, **kwargs)
```

<ParamField path="api_key" type="str | None">
  Azure Voice Live API key. When omitted, the value of the `AZURE_VOICE_LIVE_API_KEY` environment variable is used.
</ParamField>

<ParamField path="config" type="AzureVoiceLiveConfig | None">
  Provider configuration. When omitted, a default `AzureVoiceLiveConfig` is used.
</ParamField>

<ParamField path="endpoint" type="str | None">
  Service endpoint URL. When omitted, the endpoint from `config` is used, falling back to the `AZURE_VOICE_LIVE_ENDPOINT` environment variable, then an empty string.
</ParamField>

### aclose

```python theme={null}
def aclose(self) -> 'None'
```

Release any resources held by the integration.

This implementation performs no work and exists so the integration
can be used interchangeably with providers that require teardown.

### cleanup

```python theme={null}
def cleanup(self) -> 'None'
```

Clean up the integration by delegating to `aclose`.

***

## AzureVoiceLiveConfig

### Fields

<ParamField path="model" type="str" default="gpt-4o-realtime-preview" />

<ParamField path="voice" type="str" default="en-US-AvaNeural" />

<ParamField path="endpoint" type="Optional[str]" />

<ParamField path="modalities" type="List[str]" default="…" />

<ParamField path="temperature" type="Optional[float]" />

<ParamField path="max_response_output_tokens" type="Union[int, str, None]" />

<ParamField path="turn_detection" type="Optional[TurnDetectionConfig]" default="…" />

<ParamField path="input_audio_transcription" type="Optional[InputAudioTranscriptionConfig]" default="…" />

<ParamField path="tool_choice" type="str" default="auto" />

***

## TurnDetectionConfig

### Fields

<ParamField path="type" type="str" default="server_vad" />

<ParamField path="threshold" type="float" default="0.5" />

<ParamField path="prefix_padding_ms" type="int" default="300" />

<ParamField path="silence_duration_ms" type="int" default="500" />

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

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

***

## InputAudioTranscriptionConfig

### Fields

<ParamField path="model" type="str" default="gpt-4o-mini-transcribe" />
