i can't setup VAD, this error keeps showing up [09...
# ask-ai
l
i can't setup VAD, this error keeps showing up [095720.907] ERROR (8564): Load model from C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekitt-starter-node\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\_vad.onnx failed:Load model C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingualde_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-p File doesn't exist err: { "type": "Error", "message": "Load model from C:\\Users\\AaronFrancis\\Desktop\\my work\\vscode\\main tasks\\livekit\\rastarter-node\\node_modules\\.pnpm\\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\\node_modulesilero_vad.onnx failed:Load model C:\\Users\\AaronFrancis\\Desktop\\my work\\vscode\\main tasks\\livekit\\rastarter-node\\node_modules\\.pnpm\\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\\node_modulesilero_vad.onnx failed. File doesn't exist", "stack": Error: Load model from C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilide\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\ageiled:Load model C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agentpnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-plugin-silerot exist at new OnnxruntimeSessionHandler (C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livegent-starter-node\node_modules\.pnpm\onnxruntime-node@1.21.0\node_modules\onnxruntime-node\lib\backend.ts:16 at Immediate.<anonymous> (C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-rter-node\node_modules\.pnpm\onnxruntime-node@1.21.0\node_modules\onnxruntime-node\lib\backend.ts7019) at process.processImmediate (nodeinternal/timers485:21) } [095721.262] WARN (8564): VAD is not set. Enabling VAD is recommended when using LLM and STT for more resp but i have the file silero_vad.onnx set in this folder C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-plugin-silero\dist\silero_vad.onnx
t
Thanks for reaching out, Computer. 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
silero_vad.onnx
file isn’t being found where it needs to be. No worries though! Let’s walk through a couple of steps to get this sorted out: 1. First, make sure the Silero VAD plugin is installed: If you’re using Node.js, just run:
pnpm install @livekit/agents-plugin-silero
2. Next, download the model weights: You can do this by running the download script in your `package.json`:
pnpm run download
Following these steps will download the
silero_vad.onnx
file and put it in the right place, so your VAD can initialize properly. If you run into any other issues or have questions, please don’t hesitate to reach out—I’m here to help! Sources: livekit-plugins/livekit-plugins-silero/pyproject.toml | plugins/silero/src/vad.ts | Docs::Agents
l
i did everything like you said still this error keeps showing up [101026.102] ERROR (18612): Load model from C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-plugin-silero\dist\silero_vad.onnx failed:Load model C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-plugin-silero\dist\silero_vad.onnx failed. File doesn't exist err: { "type": "Error", "message": "Load model from C:\\Users\\AaronFrancis\\Desktop\\my work\\vscode\\main tasks\\livekit\\rag-multilingual-voice-agent-nodejs\\agent-starter-node\\node_modules\\.pnpm\\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\\node_modules\\@livekit\\agents-plugin-silero\\dist\\silero_vad.onnx failed:Load model C:\\Users\\AaronFrancis\\Desktop\\my work\\vscode\\main tasks\\livekit\\rag-multilingual-voice-agent-nodejs\\agent-starter-node\\node_modules\\.pnpm\\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\\node_modules\\@livekit\\agents-plugin-silero\\dist\\silero_vad.onnx failed. File doesn't exist", "stack": Error: Load model from C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-plugin-silero\dist\silero_vad.onnx failed:Load model C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\@livekit+agents-plugin-sile_172642ec2ce73917833c0711988d3e95\node_modules\@livekit\agents-plugin-silero\dist\silero_vad.onnx failed. File doesn't exist at new OnnxruntimeSessionHandler (C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\onnxruntime-node@1.21.0\node_modules\onnxruntime-node\lib\backend.ts1630) at Immediate.<anonymous> (C:\Users\AaronFrancis\Desktop\my work\vscode\main tasks\livekit\rag-multilingual-voice-agent-nodejs\agent-starter-node\node_modules\.pnpm\onnxruntime-node@1.21.0\node_modules\onnxruntime-node\lib\backend.ts7019) at process.processImmediate (nodeinternal/timers485:21) } [101026.441] WARN (18612): VAD is not set. Enabling VAD is recommended when using LLM and STT for more responsive interruption handling also the file is present in the folder
t
Thanks for letting me know the file is there! To help us get to the bottom of this, could you please check a few things for me? • Have you double-checked that the file path exactly matches what’s shown in the error message? • Are you running the application with the right permissions to access that file? • Could you share which versions of Node.js and the Silero plugin you’re using? Once we have these details, we’ll be in a great spot to figure out what’s going on together.
l
@livekit/agents-plugin-silero": "~1.0.5" Node.js v22.19.0
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
l
which method is better to build a voice agent in livekit? is it using node.js or using python? tell me the difference of each and which is more effeicent?
which method is better to build a voice agent in livekit? is it using node.js or using python? tell me the difference of each and which is more effeicent?