we should restart asr timer after a partial transcript (#735)

This commit is contained in:
Dave Horton
2024-04-30 14:53:08 -04:00
committed by GitHub
parent 3cd7a619ad
commit c77bd84e0e

View File

@@ -909,6 +909,9 @@ class TaskGather extends SttTask {
this._sonioxTranscripts.push(evt.vendor.finalWords); this._sonioxTranscripts.push(evt.vendor.finalWords);
} }
} }
/* restart asr timer if we get a partial transcript */
if (this.isContinuousAsr) this._startAsrTimer();
} }
} }
_onEndOfUtterance(cs, ep) { _onEndOfUtterance(cs, ep) {