ccoreilly / vosk-browser

A speech recognition library running in the browser thanks to a WebAssembly build of Vosk
Apache License 2.0
364 stars 60 forks source link

Not working #17

Closed lijualivenow closed 3 years ago

lijualivenow commented 3 years ago

I have downloaded the Zip file from github. Examples are not working from local files or from the glitch

ccoreilly commented 3 years ago

Please share the steps you followed. Be aware that you need to start a server locally and cannot just open an HTML file with your browser.

As for the glitch, I am unfamiliar with that tool and cannot offer any support.

lijualivenow commented 3 years ago

how to run the server? Can you provide the steps? if it's working I need to integrate with the 8th wall web AR.

ccoreilly commented 3 years ago

Run one of these commands from within the examples/modern-vanilla folder:

npx serve

or

python2 -m SimpleHTTPServer

or

python3 -m http.server

Good luck with the integration.

lijualivenow commented 3 years ago

It is for the web page.

can you give the sample code for

https://ccoreilly.github.io/vosk-browser/

ccoreilly commented 3 years ago

It is in examples/react, you'll need to update the package.json to point vosk-browser to version 0.0.5 instead of ../../lib. Please research a bit how javascript, node, npm and react work, I will not answer trivial questions you can answer yourself by reading the documentation of the mentioned projects or googling around.