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_transcripts | native_vad | dtmf | interruption | input_formats | output_formats |
|---|---|---|---|---|---|
| ✅ | ✅ | ❌ | ❌ | pcm16/48000 | pcm16/48000 |
Worked examples
No shipping demo yet — see test fixtures in
python/tests/voice/test_adapter_stubs.py.
