From 665d26b6fb6e9b10da1416403ef6f23da0a4cb4b Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 29 Nov 2022 11:37:41 -0500 Subject: [PATCH] bugfix: continuous asr timer in gather should not start until transcript is received --- lib/tasks/gather.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index bb7ce8a5..ff2f03f6 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -186,7 +186,8 @@ class TaskGather extends Task { const startListening = (cs, ep) => { this._startTimer(); - if (this.isContinuousAsr && 0 === this.timeout) this._startAsrTimer(); + // dont start asr timer until we have a transcription + //if (this.isContinuousAsr && 0 === this.timeout) this._startAsrTimer(); if (this.input.includes('speech') && !this.listenDuringPrompt) { this._initSpeech(cs, ep) .then(() => {