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 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() {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Generated
-15
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user