mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-07-04 19:32:01 +00:00
wip
This commit is contained in:
+3
-3
@@ -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() {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user