Skip to content

LiveKitAgentAdapter (preview)

Designed to join a LiveKit room as a participant and drive a voice agent over WebRTC.

Constructor

import os
import scenario
 
adapter = scenario.LiveKitAgentAdapter(
    url=os.environ["LIVEKIT_URL"],
    api_key=os.environ["LIVEKIT_API_KEY"],
    api_secret=os.environ["LIVEKIT_API_SECRET"],
    room="my-room",
)

Capabilities

streaming_transcriptsnative_vaddtmfinterruptioninput_formatsoutput_formats
pcm16/48000pcm16/48000

Worked examples

No shipping demo yet — see test fixtures in python/tests/voice/test_adapter_stubs.py.