Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf error when running pipeline voice agent example #221

Open
Njuelle opened this issue Dec 20, 2024 · 3 comments
Open

Protobuf error when running pipeline voice agent example #221

Njuelle opened this issue Dec 20, 2024 · 3 comments

Comments

@Njuelle
Copy link

Njuelle commented Dec 20, 2024

Hello Livekit team,

After building the project and the examples (on the lastest version of agent-js), when I run the pipeline_voice_agent example, I encounter this Protobuf error when a user joins a room, which gets thrown and stops the agent's process.

Error: Load model from /Users/nicolasjuelle/Projects/agents-js/plugins/silero/dist/silero_vad.onnx failed:Protobuf parsing failed.
    at new OnnxruntimeSessionHandler (/Users/nicolasjuelle/Projects/agents-js/node_modules/.pnpm/[email protected]/node_modules/onnxruntime-node/dist/backend.js:24:92)
    at Immediate.<anonymous> (/Users/nicolasjuelle/Projects/agents-js/node_modules/.pnpm/[email protected]/node_modules/onnxruntime-node/dist/backend.js:64:29)
    at process.processImmediate (node:internal/timers:478:21)
  • pnpm version : 9.15.0
  • node version : 20.12.2

Do not hesitate if you need more information.
Thanks in advance

@nbsp
Copy link
Member

nbsp commented Dec 20, 2024

did you pull Git LFS? git lfs pull should download the Silero VAD model.

@Njuelle
Copy link
Author

Njuelle commented Dec 20, 2024

yes, I ran git lfs pull, the model has been downloaded. But the error is still here.

@Njuelle
Copy link
Author

Njuelle commented Dec 20, 2024

I finally managed to make it work by manually downloading the model and placing it in the dist/ directory.
Also, I tried to open the model downloaded by Git LSF in https://netron.app/ ang got an "header error".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants