This commit is contained in:
xquanluu
2026-05-21 10:13:34 +07:00
parent f1f857ea4a
commit b43e4eb257
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1039,7 +1039,7 @@ class TaskGather extends SttTask {
this.stt_latency_ms += `${sttLatency.stt_latency_ms},`;
}
if (this.isContinuousAsr) {
if (this.isContinuousAsr && !this._vendorOwnsTurnTermination(this.vendor)) {
/* append the transcript and start listening again for asrTimeout */
const t = evt.alternatives[0].transcript;
if (t) {
+4
View File
@@ -430,6 +430,10 @@ class SttTask extends Task {
].includes(vendor));
}
_vendorOwnsTurnTermination(vendor) {
return vendor === 'houndify';
}
/* Send Done to Houndify via FS API; FinalTranscript arrives via normal flow.*/
_sendHoundifyDone(ep, channel) {
if (channel !== undefined) {
+2 -1
View File
@@ -572,7 +572,8 @@ class TaskTranscribe extends SttTask {
'TaskGather:_onTranscription - got empty transcript from deepgram, return the buffered transcripts');
}
}
if (this.isContinuousAsr) {
if (this.isContinuousAsr && !this._vendorOwnsTurnTermination(this.vendor)) {
/* append the transcript and start listening again for asrTimeout */
const t = evt.alternatives[0].transcript;
if (t) {