plain-hamburger-12701
10/05/2025, 8:42 PMtall-airline-16756
10/05/2025, 8:42 PMtall-airline-16756
10/05/2025, 8:42 PMpython 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:
node your_agent.ts download-files
Or, if you're using the pnpm script from a starter template, you can simply run:
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.tsplain-hamburger-12701
10/05/2025, 8:43 PMtall-airline-16756
10/05/2025, 8:44 PMDockerfile to download the model files:
RUN python my_agent.py download-files
2. Make sure your agent script is copied into the image before running that step:
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:
node your_agent.ts download-files
Or, if you’re using a pnpm script, try this:
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