2025-10-05 20:41:21,861 [ERROR] livekit.agents: er...
# ask-ai
p
2025-10-05 204121,861 [ERROR] livekit.agents: error initializing inference runner voice-agent | Traceback (most recent call last): voice-agent | File "/usr/local/lib/python3.12/site-packages/livekit/agents/ipc/inference_proc_lazy_main.py", line 82, in initialize voice-agent | runner.initialize() voice-agent | File "/usr/local/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py", line 115, in initialize voice-agent | raise RuntimeError( voice-agent | RuntimeError: livekit-plugins-turn-detector initialization failed. Could not find model livekit/turn-detector with revision v0.3.0-intl. voice-agent | 2025-10-05 204121,862 [INFO] livekit.agents: process initialized voice-agent | 2025-10-05 204121,861 [DEBUG] asyncio: Using selector: EpollSelector voice-agent | {"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 39, "inference": true, "elapsed_time": 1.19, "timestamp": "2025-10-05T204121.862031+00:00"}
t
Thanks for reaching out, mithun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error is happening because the necessary model files for the LiveKit turn detector plugin haven't been downloaded to your local setup yet. No worries—let's get those files downloaded so everything runs smoothly! From your project directory, please run this command:
Copy code
python your_agent.py download-files
Just make sure to replace
your_agent.py
with the actual name of your agent script. This command will fetch all the essential model files (like the ONNX model, tokenizer, and language configuration) from the Hugging Face Hub and save them locally for you. If you're working with Node.js, the similar command would be:
Copy code
node your_agent.ts download-files
Or, if you're using the pnpm script from a starter template, you can simply run:
Copy code
pnpm download-files
Once you've run the download command, just restart your agent, and the initialization error should be resolved. Also, please make sure you have an active internet connection during this process and that your environment can access the Hugging Face repositories. Sources: livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector... | plugins/livekit/src/index.ts
p
I hve a dockeried container - how to handle in this case
t
To help you smoothly handle this in a Dockerized container, it’s best to pre-download the required model files during the image build process. Here’s a simple way to do it: 1. Add this command to your
Dockerfile
to download the model files:
Copy code
RUN python my_agent.py download-files
2. Make sure your agent script is copied into the image before running that step:
Copy code
COPY my_agent.py /app/my_agent.py
RUN python /app/my_agent.py download-files
3. If you’re working with Node.js, just replace the command with:
Copy code
node your_agent.ts download-files
Or, if you’re using a pnpm script, try this:
Copy code
pnpm download-files
This way, the model files will be downloaded and stored locally inside the container during the build. Once your image is built, the container will have everything it needs to start the plugin without any hiccups. If you have any questions or want me to walk you through any part of this, just let me know—I’m here to help! Sources: Voice AI quickstart | LiveKit Docs | LiveKit turn detector plugin | LiveKit Docs | livekit-plugins/livekit-plugins-silero/README.md | plugins/livekit/src/turn_detector/base.ts