sparse-summer-58707
06/24/2025, 10:23 PMtall-airline-16756
06/24/2025, 10:23 PMtall-airline-16756
06/24/2025, 10:23 PMVoicePipelineAgent
, you can set turn detection options through the turn_detection
parameter. This parameter is included in the configuration sent to the server, allowing you to update the turn detection settings dynamically.
Sources: GitHub::livekit::livekit_composite | livekit/agents/.github/next-release/ch...sparse-summer-58707
06/24/2025, 10:24 PMtall-airline-16756
06/24/2025, 10:24 PMpip install "livekit-agents[turn-detector]~=1.0"
2. Now, let's set up your agent with the turn detection model you need. You've got two awesome options:
◦ If you're working with English, here's what to do: from livekit.plugins.turn_detector.english import EnglishModel
session = AgentSession(
...
turn_detection=EnglishModel(),
)
◦ Or if you need something more versatile, the multilingual model is perfect: from livekit.plugins.turn_detector.multilingual import MultilingualModel
session = AgentSession(
...
turn_detection=MultilingualModel(),
)
1. One last thing before you get started - download those model weights: python agent.py download-files
Quick heads up: the multilingual model just got even better! We've improved its accuracy, made it more robust to punctuation hiccups, enhanced quantization, and fine-tuned the thresholds. Pretty cool, right?
Sources: Turn detection and interruptions | LiveKit Docs | GitHub::livekit::agents | livekit-plugins/livekit-plugins-turn-detector/REA...sparse-summer-58707
06/25/2025, 2:27 AMtall-airline-16756
06/25/2025, 2:27 AM