livekit-plugins-azure 1.8.13


pip install livekit-plugins-azure

  Latest version

Released: Nov 18, 2026


Meta
Author: LiveKit
Requires Python: >=3.10.0

Classifiers

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Programming Language
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.10

Topic
  • Multimedia :: Sound/Audio
  • Multimedia :: Video
  • Scientific/Engineering :: Artificial Intelligence

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

# For the Azure Voice Live realtime model
pip install "livekit-plugins-azure[realtime]"

Realtime Mode (Azure Voice Live)

Azure Credentials

For the realtime speech-to-speech model:

export AZURE_VOICE_LIVE_ENDPOINT=https://<region>.api.cognitive.microsoft.com/
export AZURE_VOICE_LIVE_API_KEY=<your-speech-key>
export AZURE_VOICE_LIVE_MODEL=<model-name>  # e.g., gpt-realtime, gpt-4o, gpt-4o-mini, etc.

To authenticate with Microsoft Entra ID instead of an API key, pass use_default_credential=True, which uses DefaultAzureCredential.

To power the intelligence of your voice agent, you have flexibility and choice in the generative AI model between GPT-Realtime, GPT-5, GPT-4.1, Phi, and more options. For supported models and regions, see Supported models and regions.

Quick Start

Azure Voice Live provides end-to-end speech-to-speech:

from livekit import agents
from livekit.agents import Agent, AgentServer, AgentSession
from livekit.plugins import azure

class Assistant(Agent):
    def __init__(self):
        super().__init__(
            instructions="You are a helpful voice assistant powered by Azure."
        )

    async def on_enter(self):
        await self.session.generate_reply(
            instructions="Greet the user and offer assistance"
        )

server = AgentServer()

@server.rtc_session()
async def entrypoint(ctx: agents.JobContext):
    session = AgentSession(
        llm=azure.realtime.RealtimeModel(
            voice="en-US-AvaMultilingualNeural",
        )
    )

    await session.start(room=ctx.room, agent=Assistant())

if __name__ == "__main__":
    agents.cli.run_app(server)

Advanced Configuration

For full control over Azure Voice Live settings:

import os
from azure.ai.voicelive.models import AzureSemanticVadEn, AudioInputTranscriptionOptions
from livekit.agents import AgentSession
from livekit.plugins import azure

# Configure Semantic VAD for intelligent turn detection
# Options:
# - AzureSemanticVad: Default semantic VAD (multilingual)
# - AzureSemanticVadEn: English-only, optimized for English
# - AzureSemanticVadMultilingual: Explicit multilingual support
turn_detection = AzureSemanticVadEn(
    threshold=0.5,              # Voice activity detection threshold (0.0-1.0)
    silence_duration_ms=500,    # Silence duration before turn ends
    prefix_padding_ms=300,      # Audio padding before speech
    speech_duration_ms=200,     # Minimum speech duration to trigger detection
    remove_filler_words=True,   # Remove filler words like "um", "uh"
)

# Configure input audio transcription with language constraint
# This helps prevent language misidentification
# Use azure-speech with text models such as gpt-4o, whisper-1 with gpt-realtime or gpt-realtime-mini
input_audio_transcription = AudioInputTranscriptionOptions(
    model="azure-speech",
    language="en-US",  # Constrain to English for reliable detection
)

session = AgentSession(
    llm=azure.realtime.RealtimeModel(
        endpoint=os.getenv("AZURE_VOICE_LIVE_ENDPOINT"),
        api_key=os.getenv("AZURE_VOICE_LIVE_API_KEY"),
        model=os.getenv("AZURE_VOICE_LIVE_MODEL", "gpt-4o"),
        voice=os.getenv("AZURE_VOICE_LIVE_VOICE", "en-US-AvaMultilingualNeural"),
        input_audio_transcription=input_audio_transcription,
        turn_detection=turn_detection,
        tool_choice="auto",  # Enable function calling
    )
)

RealtimeModel Parameters

Parameter Description Default
endpoint Azure Voice Live endpoint URL AZURE_VOICE_LIVE_ENDPOINT env var
api_key Azure API key AZURE_VOICE_LIVE_API_KEY env var
use_default_credential Authenticate with DefaultAzureCredential instead of an API key False
model Model name AZURE_VOICE_LIVE_MODEL env var, or gpt-realtime
voice Azure neural voice name en-US-AvaMultilingualNeural
modalities Output modalities, ["text"] for text-only responses ["text", "audio"]
input_audio_transcription Audio transcription config (model, language), None to disable azure-speech for non-multimodal models (e.g. gpt-4.1) and phi4-mm-realtime, whisper-1 for the other models, with auto-detect
turn_detection VAD configuration object ServerVad(threshold=0.5)
tool_choice Function calling mode ("auto", "none", etc.) "auto"
temperature Sampling temperature 0.8
max_output_tokens Maximum output tokens per response 4096

Turn Detection Options

VAD Type Description
AzureSemanticVad Default semantic VAD (multilingual)
AzureSemanticVadEn English-only, optimized for English
AzureSemanticVadMultilingual Explicit multilingual support

VAD Parameters

Parameter Description Range
threshold Voice activity detection sensitivity 0.0-1.0
silence_duration_ms Silence duration before turn ends milliseconds
prefix_padding_ms Audio padding before detected speech milliseconds
speech_duration_ms Minimum speech duration to trigger milliseconds
remove_filler_words Remove "um", "uh", etc. boolean

Azure Voice Live Capabilities

  • Low-latency conversations - Realtime bidirectional streaming
  • Multilingual support - Works with Azure's multilingual neural voices
  • Function calling - Built-in tool use for agentic workflows
  • Interruption handling - Graceful handling of user interruptions

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, AgentSession
from livekit.plugins import azure, openai, silero

session = AgentSession(
    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, feminine
  • en-US-AndrewMultilingualNeural - Multilingual, masculine
  • en-US-JennyNeural - English, feminine
  • en-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

2.0.0b2 Nov 18, 2026
1.8.13 Nov 18, 2026
1.8.12 Nov 13, 2026
1.8.11 Nov 05, 2026
1.8.10 Oct 28, 2026
1.8.9 Oct 24, 2026
1.8.8 Oct 15, 2026
1.8.7 Oct 14, 2026
1.8.6 Oct 09, 2026
1.8.5 Oct 06, 2026
1.8.4 Oct 01, 2026
1.8.3 Sep 23, 2026
1.8.2 Sep 15, 2026
1.8.1 Sep 10, 2026
1.8.0 Sep 05, 2026
1.7.1 Aug 27, 2026
1.7.0 Aug 20, 2026
1.6.11rc1 Aug 13, 2026
1.6.10 Aug 13, 2026
1.6.9 Aug 07, 2026
1.6.8 Aug 03, 2026
1.6.7 Jul 25, 2026
1.6.6 Jul 18, 2026
1.6.5 Jul 09, 2026
1.6.4 Jun 24, 2026
1.6.3 Jun 22, 2026
1.6.2 Jun 19, 2026
1.6.1 Jun 17, 2026
1.6.0 Jun 11, 2026
1.6.0rc2 May 29, 2026
1.6.0rc1 May 27, 2026
1.5.19rc1 Jun 08, 2026
1.5.18 Jun 05, 2026
1.5.17 Jun 03, 2026
1.5.16 Jun 01, 2026
1.5.15 May 29, 2026
1.5.14 May 27, 2026
1.5.13 May 25, 2026
1.5.12 May 21, 2026
1.5.11 May 19, 2026
1.5.10 May 18, 2026
1.5.9 May 13, 2026
1.5.8 May 05, 2026
1.5.7 Apr 30, 2026
1.5.6 Apr 22, 2026
1.5.5 Apr 20, 2026
1.5.4 Apr 16, 2026
1.5.3 Apr 15, 2026
1.5.2 Apr 08, 2026
1.5.1 Mar 23, 2026
1.5.0 Mar 19, 2026
1.5.0rc2 Mar 06, 2026
1.5.0rc1 Feb 13, 2026
1.4.6 Mar 16, 2026
1.4.5 Mar 11, 2026
1.4.4 Mar 03, 2026
1.4.3 Feb 23, 2026
1.4.2 Feb 17, 2026
1.4.1 Feb 06, 2026
1.4.0 Feb 06, 2026
1.4.0rc2 Jan 23, 2026
1.4.0rc1 Dec 23, 2025
1.3.12 Jan 21, 2026
1.3.11 Jan 14, 2026
1.3.10 Dec 23, 2025
1.3.9 Dec 19, 2025
1.3.8 Dec 17, 2025
1.3.7 Dec 16, 2025
1.3.6 Dec 03, 2025
1.3.5 Nov 25, 2025
1.3.4 Nov 24, 2025
1.3.3 Nov 19, 2025
1.3.2 Nov 17, 2025
1.3.1 Nov 17, 2025
1.3.0rc2 Nov 15, 2025
1.3.0rc1 Nov 06, 2025
1.2.18 Nov 05, 2025
1.2.17 Oct 29, 2025
1.2.16 Oct 27, 2025
1.2.15 Oct 15, 2025
1.2.14 Oct 01, 2025
1.2.13 Oct 01, 2025
1.2.12 Sep 29, 2025
1.2.11 Sep 18, 2025
1.2.9 Sep 15, 2025
1.2.8 Sep 02, 2025
1.2.7 Aug 28, 2025
1.2.6 Aug 18, 2025
1.2.5 Aug 10, 2025
1.2.4 Aug 07, 2025
1.2.3 Aug 04, 2025
1.2.2 Jul 24, 2025
1.2.1 Jul 17, 2025
1.2.0 Jul 17, 2025
1.1.7 Jul 15, 2025
1.1.6 Jul 10, 2025
1.1.5 Jun 30, 2025
1.1.4 Jun 25, 2025
1.1.3 Jun 21, 2025
1.1.2 Jun 20, 2025
1.1.1 Jun 10, 2025
1.1.0 Jun 10, 2025
1.0.23 May 29, 2025
1.0.22 May 17, 2025
1.0.21 May 15, 2025
1.0.20 May 08, 2025
1.0.19 May 03, 2025
1.0.18 May 01, 2025
1.0.17 Apr 24, 2025
1.0.16 Apr 22, 2025
1.0.15 Apr 22, 2025
1.0.14 Apr 22, 2025
1.0.13 Apr 15, 2025
1.0.12 Apr 15, 2025
1.0.11 Apr 10, 2025
1.0.10 Apr 10, 2025
1.0.2 Apr 10, 2025
1.0.1 Apr 10, 2025
1.0.0 Apr 10, 2025
1.0.0rc9 Apr 07, 2025
1.0.0rc8 Apr 07, 2025
1.0.0rc7 Apr 07, 2025
1.0.0rc6 Apr 03, 2025
1.0.0rc5 Apr 03, 2025
1.0.0rc4 Mar 29, 2025
1.0.0rc3 Mar 27, 2025
1.0.0rc2 Mar 27, 2025
1.0.0rc1 Mar 26, 2025
1.0.0.dev5 Mar 19, 2025
1.0.0.dev4 Mar 19, 2025
0.5.8 May 19, 2025
0.5.7 Apr 16, 2025
0.5.6 Mar 19, 2025
0.5.5 Mar 06, 2025
0.5.4 Feb 20, 2025
0.5.3 Jan 12, 2025
0.5.2 Dec 31, 2024
0.5.1 Dec 21, 2024
0.5.0 Dec 12, 2024
0.4.4 Dec 04, 2024
0.4.2 Nov 14, 2024
0.4.1 Oct 30, 2024
0.4.0 Oct 15, 2024
0.3.2 Sep 22, 2024
0.3.1 Jul 26, 2024
0.3.0 Jul 24, 2024
0.3.0.dev7 Jul 24, 2024
0.3.0.dev2 Jul 24, 2024
0.3.0.dev1 Jul 23, 2024
0.2.1 Jun 12, 2024
0.2.0 Jun 11, 2024
Extras:
Dependencies:
azure-cognitiveservices-speech (>=1.48.2)
httpx2 (<3,>=2.12)
livekit-agents[openai] (>=1.8.13)