From bebc82d19474cc1708a8a0620233d4d211440a80 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 21 Mar 2023 15:46:00 -0400 Subject: [PATCH] bugfix: gather with google STT does not need to restart transcribing after end of utterance --- lib/tasks/gather.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 0d4ea346..02cdecdd 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -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) {