react-speech-kit
react-speech-kit copied to clipboard
Pause & Resume
I think this package will be much better if you can actually pause and resume the audio.
yes ,expect it。
In other words, if you hesitate in speaking, such as to think for a second, the recognition starts again rather than resuming from where it was. E.g.,
"I am talking then I pause... [a second silence] ... and resume."
The result is only "and resume."
Should be: "I am talking then I pause and resume."
I am thinking the issue may be here:
// SpeechRecognition stops automatically after inactivity
// We want it to keep going until we tell it to stop
recognition.current.onend = function () {
return recognition.current.start();
};
In that it starts over instead of continuing.