from livekit.plugins.turn_detector.multilingual im...
# ask-ai
b
from livekit.plugins.turn_detector.multilingual import MultilingualModel this import is not working i am using livekit.plugin v~=1.0
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please share the exact error message you're seeing when you try to import? For instance, is it a
ModuleNotFoundError
,
ImportError
, or something else? Understanding this will really help us get to the bottom of the issue together. Also, it would be great if you could confirm a few things for me: • Have you installed the
livekit-plugins-turn-detector
package using
pip
? • Did you run the
download-files
command to grab the necessary model files? • Are there any custom environment variables set, like
HF_HOME
or
HF_HUB_CACHE
, that might influence where the model cache is located? Sources: Gemini Live API plugin | LiveKit docs | livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector... | LiveKit turn detector plugin | LiveKit docs
b
(.venv) dj@Amans-MacBook-Pro voice_agent % python3 agent_dev.py start Traceback (most recent call last): File "/Users/dj/Documents/recivo/voice_agent/agent_dev.py", line 6, in <module> from livekit.plugins import noise_cancellation, silero ImportError: cannot import name 'silero' from 'livekit.plugins' (unknown location)
t
It looks like the error is happening because the
silero
plugin might not be installed or set up correctly. Don’t worry, I’m here to help you through it! Let’s try these steps together: 1. First, please make sure to install the plugin using the recommended method for managing dependencies:
Copy code
uv add "livekit-agents[silero]~=1.2"
1. Next, download the necessary model weights by running this command:
Copy code
uv run agent.py download-files
1. Then, verify the installation by checking the installed packages with:
Copy code
uv pip list | grep livekit
1. Make sure your Python environment is isolated—using a virtual environment is a great way to do this. 2. Also, double-check that the
__init__.py
file inside
livekit/plugins/silero/
is present and loading properly. Once you’ve gone through these steps, please try importing
silero
again. If you run into any trouble or see any specific errors along the way, just let me know—I’m here to help you get this sorted out! Sources: Silero VAD plugin | LiveKit docs | Agents v0.x migration guide - Python | LiveKit docs | Python Agents Core Architecture | livekit/livekit_composite | DeepWiki | agent/main.py | livekit-plugins/livekit-plugins-silero/livekit/plugins/silero/resources/__i...