sljavi / handsfree-for-website

Turn on voice control in your website. Demo ->
https://sljavi.github.io/handsfree-for-website/dist/index.html
MIT License
16 stars 9 forks source link

Integration Issue : SpeechRecognizer already active #4

Closed anirudhjain75 closed 4 years ago

anirudhjain75 commented 4 years ago

I tried following the readme file with this repo to integrate handsfree tools with my website. I'm using a react website and the exact error is DOMException: Failed to execute 'start' on 'SpeechRecognition': recognition has already started.

Operating System: Mac OS Big Sur Browser: Chrome 83.0.4103.116

sljavi commented 4 years ago

Hi @anirudhjain75 could you share the code you're using to initialize lib? Any chance the init or turnOn methods are executed more than once?

anirudhjain75 commented 4 years ago

No the code aren't being executed more than once

anirudhjain75 commented 4 years ago

hansfreeForWebsite.init({ turnedOn: true, continuesRecognition: true });

anirudhjain75 commented 4 years ago

Hi @anirudhjain75 could you share the code you're using to initialize lib? Any chance the init or turnOn methods are executed more than once?

Thanks I just made a change so its confirmed to be executed only once. Its a great tool

sljavi commented 4 years ago

thanks @anirudhjain75 if the project you're working on gets published could you share it? It will be great to reference it as an example.

anirudhjain75 commented 4 years ago

Sure