react-speech-kit icon indicating copy to clipboard operation
react-speech-kit copied to clipboard

Pause & Resume

Open nebovincent opened this issue 2 years ago • 2 comments

I think this package will be much better if you can actually pause and resume the audio.

nebovincent avatar Mar 07 '23 18:03 nebovincent

yes ,expect it。

vual avatar Jan 03 '24 02:01 vual

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.

karencfisher avatar Dec 29 '24 00:12 karencfisher