mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-07-24 05:02:20 +00:00
wip
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user