This commit is contained in:
xquanluu
2026-05-22 18:13:30 +07:00
parent 6125e6d600
commit bd5fe8c2b0
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -762,11 +762,11 @@ class TaskGather extends SttTask {
return false;
}
/* houndify mode=none: FS emits eoq/vad on every falling edge — send Done now if
* asrTimeout=0, else (re)arm asrTimer to extend turn across multi-pause cycles. */
/* houndify mode=none: FS detected eoq/vad — send Done now if asrTimeout=0, else arm asrTimer. */
_onHoundifyEoqVadTriggered(_cs, _ep, _evt, _fsEvent) {
if (!this.asrTimeout) return this._sendHoundifyDone(this.ep);
this._startAsrTimer(); /* _startAsrTimer calls _clearAsrTimer internally */
if (this._asrTimer) return;
this._startAsrTimer();
}
_startAsrTimer() {
+3 -3
View File
@@ -936,12 +936,12 @@ class TaskTranscribe extends SttTask {
this._onVendorError(cs, _ep, {error: JSON.stringify(e)});
}
/* houndify mode=none: FS emits eoq/vad on every falling edge — send Done now if
* asrTimeout=0, else (re)arm asrTimer to extend turn across multi-pause cycles. */
/* houndify mode=none: FS detected eoq/vad — send Done now if asrTimeout=0, else arm asrTimer. */
_onHoundifyEoqVadTriggered(_cs, _ep, channel, _evt, _fsEvent) {
const ep = channel === 2 ? this.ep2 : this.ep;
if (!this.asrTimeout) return this._sendHoundifyDone(ep, channel);
this._startAsrTimer(channel); /* _startAsrTimer calls _clearAsrTimer internally */
if (this._asrTimers?.[channel - 1]) return; /* idempotent per channel */
this._startAsrTimer(channel);
}
_startAsrTimer(channel) {