im having trouble with downloading livekit's turn ...
# ask-ai
p
im having trouble with downloading livekit's turn detector plugin. my hosting platform fly.io has blocked outbound traffic to hugging-face and im not able to use that plugin. ive tried a proxy server as well but that's messing up with livekit's websocket connection. any ideas on this?
t
Thanks for reaching out, Vaneeza. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I’m glad you reached out! To use LiveKit's turn detector plugin in an environment where outbound traffic to Hugging Face is blocked, you can manually transfer the necessary files. Let me guide you through the steps: 1. On a machine that does have access to Hugging Face, run this command to download and cache all required files:
python my_agent.py download-files
2. Next, find the Hugging Face cache folder, which is usually located at: ◦ Linux/macOS:
~/.cache/huggingface/hub/
◦ Windows:
%USERPROFILE%\.cache\huggingface\hub\
1. Look for the directory named
models--livekit--turn-detector
inside the cache folder — this is where the files you need are stored. 2. Then, simply transfer that entire directory over to the same cache location on your target environment. After you’ve done this, the plugin should initialize smoothly even without internet access. If you run into any hiccups, double-check that all the required files are present in the cache. If transferring files isn’t an option, another approach could be to request temporary network access to Hugging Face, set up a proxy, or use a pre-built Docker image that already includes the models. Sources: examples/src/realtime_turn_detector.ts | LiveKit turn detector plugin | LiveKit Docs | livekit-plugins/livekit-plugins-silero/README.md