mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
gather: do not set utterance_end_ms on Deepgram if endpointing is explicitly turned off, and also in that case return transcripts when is_final is true
This commit is contained in:
@@ -351,7 +351,8 @@ class TaskGather extends SttTask {
|
||||
/* some special deepgram logic */
|
||||
if (this.vendor === 'deepgram') {
|
||||
if (this.isContinuousAsr) this._doContinuousAsrWithDeepgram(this.asrTimeout);
|
||||
if (this.data.recognizer?.deepgramOptions?.shortUtterance) this.shortUtterance = true;
|
||||
if (this.data.recognizer?.deepgramOptions?.shortUtterance ||
|
||||
this.data.recognizer?.deepgramOptions?.endpointing === false) this.shortUtterance = true;
|
||||
}
|
||||
|
||||
const opts = this.setChannelVarsForStt(this, this.sttCredentials, this.language, this.data.recognizer);
|
||||
|
||||
Reference in New Issue
Block a user