This commit is contained in:
xquanluu
2026-05-22 18:01:31 +07:00
parent 6cdf9f2b7a
commit 43f121ccb9
3 changed files with 6 additions and 21 deletions
+3 -3
View File
@@ -762,11 +762,11 @@ class TaskGather extends SttTask {
return false;
}
/* houndify mode=none: FS detected eoq/vad — send Done now if asrTimeout=0, else arm asrTimer. */
/* 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. */
_onHoundifyEoqVadTriggered(_cs, _ep, _evt, _fsEvent) {
if (!this.asrTimeout) return this._sendHoundifyDone(this.ep);
if (this._asrTimer) return;
this._startAsrTimer();
this._startAsrTimer(); /* _startAsrTimer calls _clearAsrTimer internally */
}
_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 detected eoq/vad — send Done now if asrTimeout=0, else arm asrTimer. */
/* 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. */
_onHoundifyEoqVadTriggered(_cs, _ep, channel, _evt, _fsEvent) {
const ep = channel === 2 ? this.ep2 : this.ep;
if (!this.asrTimeout) return this._sendHoundifyDone(ep, channel);
if (this._asrTimers?.[channel - 1]) return; /* idempotent per channel */
this._startAsrTimer(channel);
this._startAsrTimer(channel); /* _startAsrTimer calls _clearAsrTimer internally */
}
_startAsrTimer(channel) {
-15
View File
@@ -8133,21 +8133,6 @@
"node": ">= 6.0.0"
}
},
"node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/utf-8-validate": {
"version": "5.0.10",
"resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
"integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"peer": true,
"dependencies": {
"node-gyp-build": "^4.3.0"
},
"engines": {
"node": ">=6.14.2"
}
},
"node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",