brash-wire-35118
07/25/2025, 4:26 PMtall-airline-16756
07/25/2025, 4:26 PMtall-airline-16756
07/25/2025, 4:27 PMpip install "livekit-agents[turn-detector]~=1.0"
2. Download Model Files
Before running your agent for the first time, download the model files using this command:
python agent.py download-files
This will download the necessary components, including:
• The tokenizer from the HuggingFace model repository
• The ONNX model file (model_q8.onnx
)
• The languages.json
configuration file
3. Local Hosting Requirements
The model is designed to run locally with the following requirements:
• RAM: ~400MB
• Storage: 281MB on disk
• CPU: Runs on CPU with inference time of ~25ms per turn
• Concurrency: Supports multiple concurrent sessions
4. Usage
Once downloaded, you can use the multilingual model in your agent as follows:
from livekit.plugins.turn_detector.multilingual import MultilingualModel
session = AgentSession(
...
turn_detection=MultilingualModel(),
)
The multilingual model supports 13 languages, including English, French, Spanish, German, and more. It runs entirely on your server's CPU, making it suitable for on-premises deployment scenarios.
Sources: LiveKit turn detector plugin | LiveKit Docs | examples/voice_agents/mcp/mcp-agent.py