speak-extension icon indicating copy to clipboard operation
speak-extension copied to clipboard

"recognition has already started." error is thrown when recognition started

Open teramotodaiki opened this issue 5 years ago • 1 comments

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.

teramotodaiki avatar Jan 29 '20 11:01 teramotodaiki

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

INGnowait avatar Jan 21 '21 15:01 INGnowait