bugfix: gather with google STT does not need to restart transcribing after end of utterance

This commit is contained in:
Dave Horton
2023-03-21 15:46:00 -04:00
parent cdc82e99ff
commit bebc82d194

View File

@@ -660,9 +660,14 @@ class TaskGather extends Task {
this._killAudio(cs);
}
// DCH: commenting out because my experience is that the google STT engine
// will keep listening after it detects end of utterance, and will return a final transcript
// My earlier understanding that we needed to stop and restart the recognizer appears incorrect.
/*
if (!this.resolved && !this.killed && !this._bufferedTranscripts.length) {
this._startTranscribing(ep);
}
*/
}
_onStartOfSpeech(cs, ep) {