bugfix: continuous asr timer in gather should not start until transcript is received

This commit is contained in:
Dave Horton
2022-11-29 11:37:41 -05:00
parent d69c773de0
commit 665d26b6fb

View File

@@ -186,7 +186,8 @@ class TaskGather extends Task {
const startListening = (cs, ep) => { const startListening = (cs, ep) => {
this._startTimer(); 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) { if (this.input.includes('speech') && !this.listenDuringPrompt) {
this._initSpeech(cs, ep) this._initSpeech(cs, ep)
.then(() => { .then(() => {