mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-17 00:44:24 +00:00
wip
This commit is contained in:
1 parent
f1f857ea4a
commit
b43e4eb257
3 files changed
+7
-2
No files matched your search
+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