diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 67802a2b..efc19a0b 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -685,7 +685,9 @@ class TaskGather extends SttTask { } _startAsrTimer() { - if (this.vendor === 'deepgram') return; // no need + // Deepgram has a case that UtteranceEnd is not sent to cover the last word end time. + // So we need to wait for the asrTimeout to be sure that the last word is sent. + // if (this.vendor === 'deepgram') return; // no need assert(this.isContinuousAsr); this._clearAsrTimer(); this._asrTimer = setTimeout(() => {