speak-extension
speak-extension copied to clipboard
"recognition has already started." error is thrown when recognition started
Error in event handler: Error: Failed to execute 'start' on 'SpeechRecognition': recognition has already started.
To reproduce, click START button more than 2 times. It causes when call recognition.start()
after recognition started.
To disappear this error, make a flag variable then assign true when start, and assign false when recognition.onend
event fired.
This is an implementation. It works fine on my environment. https://github.com/teramotodaiki/speak-extension/commit/dfb10dd7e90cf8c7ab14f9e6957c6e892bc8ecb8
I could make pull request if you need. Thank you.
so, can you help me how to solve this problem: "AudioCapture permission has been blocked because of a Feature Policy applied to the current document. See https://goo.gl/EuHzyv for more details." thank you