ricky0123 / vad

Voice activity detector (VAD) for the browser with a simple API
https://www.vad.ricky0123.com
Other
909 stars 144 forks source link

digitalChat5-CwHLMuC-.js:2037 Encountered an error while loading worklet. Please make sure the worklet vad.bundle.min.js included with @ricky0123/vad-web is available at the specified path: /vad.worklet.bundle.min.js #121

Open hjw472015868 opened 4 months ago

hjw472015868 commented 4 months ago

digitalChat5-CwHLMuC-.js:2037 Encountered an error while loading worklet. Please make sure the worklet vad.bundle.min.js included with @ricky0123/vad-web is available at the specified path: /vad.worklet.bundle.min.js

arcossci commented 4 months ago

the same error

chen1328068199 commented 4 months ago

the same error

Lev-Shapiro commented 3 months ago

Anyone found any solution to this problem?

pvscreations commented 2 months ago

@Lev-Shapiro @arcossci have you tried explicitly mentioning worklet url using cdn's like this? because it worked for me await MicVAD.new({ submitUserSpeechOnPause:true, ortConfig: (ort) => { ort.env.wasm.wasmPaths = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.19.0/dist/" }, workletURL: "https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.18/dist/vad.worklet.bundle.min.js", modelURL: "https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.18/dist/silero_vad.onnx", })

nawangwe commented 1 month ago

@Lev-Shapiro @arcossci have you tried explicitly mentioning worklet url using cdn's like this? because it worked for me await MicVAD.new({ submitUserSpeechOnPause:true, ortConfig: (ort) => { ort.env.wasm.wasmPaths = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.19.0/dist/" }, workletURL: "https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.18/dist/vad.worklet.bundle.min.js", modelURL: "https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.18/dist/silero_vad.onnx", })

This didn't work for me, still get the error, even with the cdn path.

Lev-Shapiro commented 1 month ago

I've solved it weeks ago, I explained every step in the Discord channel of this library. If the solution above didn't work for you - you are more than welcome to check out the Discord server

stomx commented 1 month ago

I've solved it weeks ago, I explained every step in the Discord channel of this library. If the solution above didn't work for you - you are more than welcome to check out the Discord server

Is there a discord channel to talk about VAD? If possible, could you share it here? Thank you.

ricky0123 commented 1 month ago

Hi @stomx https://discord.gg/4WPeGEaSpF here you go