This release is a pre-release and may not be stable for production use.
Azure Plugin for LiveKit Agents
Complete Azure AI integration for LiveKit Agents, including Azure Speech Services and Azure Voice Live Realtime API.
What's included:
- RealtimeModel - Azure Voice Live for speech-to-speech
- STT - Powered by Azure Speech Services
- TTS - Powered by Azure Speech Services with neural voices
For Azure OpenAI LLM (non-realtime), see the OpenAI plugin which supports LLM.with_azure().
See https://docs.livekit.io/agents/integrations/azure/ for more information.
Installation
pip install livekit-plugins-azure
Realtime Mode (Azure Voice Live)
Azure Credentials
export AZURE_VOICE_LIVE_ENDPOINT=https://<resource>.services.ai.azure.com
export AZURE_VOICE_LIVE_API_KEY=<your-key>
export AZURE_VOICE_LIVE_MODEL=<model-name> # e.g., gpt-realtime, gpt-4.1
To authenticate with Microsoft Entra ID instead of an API key, pass entra_token= a token with the https://ai.azure.com/.default scope.
You can choose between GPT-Realtime, GPT-5, GPT-4.1, Phi and more. For supported models and regions, see Supported models and regions.
Quick Start
from livekit.agents import Agent, VoiceSession
from livekit.plugins import azure
session = VoiceSession(
llm=azure.realtime.RealtimeModel(voice="en-US-AvaMultilingualNeural"),
)
Advanced Configuration
Voice Live options are records from azure.realtime:
import os
from livekit.plugins import azure
model = azure.realtime.RealtimeModel(
endpoint=os.getenv("AZURE_VOICE_LIVE_ENDPOINT"),
api_key=os.getenv("AZURE_VOICE_LIVE_API_KEY"),
model="gpt-4.1",
voice="en-US-AvaMultilingualNeural",
# azure-speech with text models such as gpt-4.1, whisper-1 with gpt-realtime
input_audio_transcription=azure.realtime.AudioTranscription(
model="azure-speech", language="en-US"
),
turn_detection=azure.realtime.AzureSemanticVad(
silence_duration_ms=500, remove_filler_words=True
),
input_audio_noise_reduction=azure.realtime.AzureDeepNoiseSuppression(),
)
RealtimeModel Parameters
| Parameter | Description | Default |
|---|---|---|
endpoint |
Azure Voice Live resource endpoint | AZURE_VOICE_LIVE_ENDPOINT env var |
api_key |
Azure API key | AZURE_VOICE_LIVE_API_KEY env var |
entra_token |
Microsoft Entra token, instead of an API key | None |
model |
Model name | AZURE_VOICE_LIVE_MODEL env var, or gpt-realtime |
voice |
Azure voice name, OpenAI voice name, or an AzureVoice |
en-US-AvaMultilingualNeural |
modalities |
["text"] for text-only responses |
audio |
input_audio_transcription |
AudioTranscription(model=, language=), None to disable |
azure-speech for text models and phi4-mm-realtime, whisper-1 otherwise |
turn_detection |
ServerVad(...) or AzureSemanticVad(type=...) (azure_semantic_vad, azure_semantic_vad_en, azure_semantic_vad_multilingual) |
server VAD |
input_audio_noise_reduction |
AzureDeepNoiseSuppression(), "near_field" or "far_field" |
None |
tool_choice |
Function calling mode | "auto" |
max_output_tokens |
Maximum output tokens per response, None for unlimited |
4096 |
See How to use the Voice Live API for every turn detection, noise suppression and voice option.
Pipeline Mode (STT + LLM + TTS)
Azure Credentials
Azure Speech Services (for STT/TTS)
export AZURE_SPEECH_KEY=<your-speech-key>
export AZURE_SPEECH_REGION=<your-region> # e.g., eastus, westus2
Azure OpenAI (for LLM)
export AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com
export AZURE_OPENAI_API_KEY=<your-openai-key>
export AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o
export AZURE_OPENAI_API_VERSION=2024-10-01-preview
Quick Start
For more control over individual components:
from livekit.agents import Agent, VoiceSession
from livekit.plugins import azure, openai, silero
session = VoiceSession(
stt=azure.STT(),
llm=openai.LLM.with_azure(
model="gpt-4o",
azure_endpoint="https://your-resource.openai.azure.com",
api_key="your-api-key",
api_version="2024-10-01-preview",
),
tts=azure.TTS(voice="en-US-JennyNeural"),
vad=silero.VAD.load(),
)
await session.start(room=ctx.room, agent=Agent(instructions="You are helpful."))
Voice Selection
Azure provides a wide variety of neural voices. Use multilingual voices for multi-language support:
# Multilingual voices (recommended)
model = azure.realtime.RealtimeModel(
voice="en-US-AvaMultilingualNeural"
)
# Or use TTS with specific voices
tts = azure.TTS(voice="en-US-JennyNeural")
Popular voices:
en-US-AvaMultilingualNeural- Multilingual, feminineen-US-AndrewMultilingualNeural- Multilingual, masculineen-US-JennyNeural- English, feminineen-US-GuyNeural- English, masculine
See Azure Voice Gallery for full list.
HD Voices
For higher quality audio, use DragonHD voices:
tts = azure.TTS(voice="en-US-Ava:DragonHDLatestNeural")
Resources
Metadata
Release files for livekit-plugins-azure 2.0.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| livekit_plugins_azure-2.0.0b2.tar.gz | 16.1 kB | With provenance | Details for livekit_plugins_azure-2.0.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_azure-2.0.0b2-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_azure-2.0.0b2-py3-none-any.whl |
Total release size: 35.2 kB
Release files / livekit_plugins_azure-2.0.0b2.tar.gz
| Download URL | livekit_plugins_azure-2.0.0b2.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beee9ddf0ccc4414ad3b31f6aacb7c0b4953e9be6faa5eb74ed245aebeb198ed
|
|
BLAKE2b-256 checksum How to use checksums |
19bdd0fbbcd21217c633f06ebeccfa76035e179e4b705c9baaafa86638e28924
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / livekit_plugins_azure-2.0.0b2-py3-none-any.whl
| Download URL | livekit_plugins_azure-2.0.0b2-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74ed0a9f2b9ac223c2c44dbadcd036a084238f3c441dba0971af3836528ce904
|
|
BLAKE2b-256 checksum How to use checksums |
0125ca24f1b42f67264033cee9001449124e6f3c1f1534aaa721f252774aaa29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for livekit-plugins-azure 2.0.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for livekit_plugins_azure-2.0.0b2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.