Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

LiveKit Ultravox Plugin

LiveKit plugin for Ultravox's real-time speech-to-speech AI models, providing seamless integration with the LiveKit Agents framework.

Installation

pip install livekit-plugins-ultravox

Prerequisites

You'll need an API key from Ultravox. Set it as an environment variable:

export ULTRAVOX_API_KEY="your_api_key_here"

Basic Usage

Simple Voice Assistant

from livekit.agents import Agent, AgentServer, JobContext, VoiceSession, cli, inference
from livekit.plugins.ultravox.realtime import RealtimeModel

server = AgentServer()


@server.rtc_session()
async def entrypoint(ctx: JobContext):
    session = VoiceSession(
        vad=inference.VAD(),
        llm=RealtimeModel(
            model="fixie-ai/ultravox",
            voice="Mark",
        ),
    )
    
    await session.start(
        agent=Agent(
            instructions="You are a helpful voice assistant.",
        ),
        room=ctx.room,
    )

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

Voice Assistant with Tools

from livekit.agents import (
    Agent,
    AgentServer,
    JobContext,
    VoiceSession,
    cli,
    function_tool,
    inference,
)
from livekit.plugins.ultravox.realtime import RealtimeModel

@function_tool
async def get_weather(location: str) -> str:
    """Get weather information for a location."""
    return f"The weather in {location} is sunny and 72°F"

@function_tool
async def book_appointment(date: str, time: str) -> str:
    """Book an appointment."""
    return f"Appointment booked for {date} at {time}"

server = AgentServer()


@server.rtc_session()
async def entrypoint(ctx: JobContext):
    session = VoiceSession(
        vad=inference.VAD(),
        llm=RealtimeModel(model="fixie-ai/ultravox"),
    )
    
    await session.start(
        agent=Agent(
            instructions="You are a helpful assistant with access to weather and scheduling tools.",
            tools=[get_weather, book_appointment],
        ),
        room=ctx.room,
    )

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

Configuration Options

Ultravox API (/api/calls) Parameters

RealtimeModel(
    model="fixie-ai/ultravox",            # Model to use (warn + pass-through if unknown)
    voice="Mark",                         # Voice to use (warn + pass-through if unknown)
    api_key=None,                          # API key (defaults to env var)
    base_url=None,                         # API base URL (defaults to Ultravox API)
    system_prompt="You are helpful.",      # System prompt
    input_sample_rate=16000,               # Input audio sample rate
    output_sample_rate=24000,              # Output audio sample rate
    http_session=None,                     # Custom HTTP session
)

Notes:
- Unknown models/voices: the plugin logs a warning and sends them as-is; the server validates.
- Metrics: the plugin emits a single `metrics_collected` event per generation.

Metadata

Release files for livekit-plugins-ultravox 2.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-ultravox 2.0.0b2
File Size Uploaded Provenance Actions
livekit_plugins_ultravox-2.0.0b2.tar.gz 13.8 kB With provenance Details for livekit_plugins_ultravox-2.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-ultravox 2.0.0b2
File Interpreter ABI Platform Actions
livekit_plugins_ultravox-2.0.0b2-py3-none-any.whl Python 3 none any Details for livekit_plugins_ultravox-2.0.0b2-py3-none-any.whl

Total release size: 29.2 kB

Release files / livekit_plugins_ultravox-2.0.0b2.tar.gz

Download URL livekit_plugins_ultravox-2.0.0b2.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
332135b4dc44795ed8309643c12cc07fc233f565c517d52d4ec7d39d67b4bfc3
BLAKE2b-256 checksum
How to use checksums
eca9476ea4a4243ad8b5d58b041a63f12e39be78b1d8c948788c6bb1ed834a5a
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 log

Release files / livekit_plugins_ultravox-2.0.0b2-py3-none-any.whl

Download URL livekit_plugins_ultravox-2.0.0b2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e05ac75975511254b7a5a66dcf15244ba580f14655acb46cf5b4c43ea8afd45
BLAKE2b-256 checksum
How to use checksums
d0b5b313c7903ba557fa73cf30617ec9b62605d7386087859796de2b12f1fb65
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 log

Security for livekit-plugins-ultravox 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.

Select from 2 files

Attestation for livekit_plugins_ultravox-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 log

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

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page