From 43f121ccb99cadcabd503b7fa8c9aebff4c7ebf4 Mon Sep 17 00:00:00 2001 From: xquanluu Date: Fri, 22 May 2026 18:01:31 +0700 Subject: [PATCH] wip --- lib/tasks/gather.js | 6 +++--- lib/tasks/transcribe.js | 6 +++--- package-lock.json | 15 --------------- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index cff5fd12..f69d366b 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -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() { diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index e55ad04d..c8c311f0 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -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) { diff --git a/package-lock.json b/package-lock.json index f0f897db..38e4bd02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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",