mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
gather: fix bug where empty deepgram transcript saved incorrectly
This commit is contained in:
@@ -837,7 +837,7 @@ class TaskGather extends SttTask {
|
|||||||
if (this.bargein && (words + bufferedWords) < this.minBargeinWordCount) {
|
if (this.bargein && (words + bufferedWords) < this.minBargeinWordCount) {
|
||||||
this.logger.debug({evt, words, bufferedWords},
|
this.logger.debug({evt, words, bufferedWords},
|
||||||
'TaskGather:_onTranscription - final transcript but < min barge words');
|
'TaskGather:_onTranscription - final transcript but < min barge words');
|
||||||
this._bufferedTranscripts.push(evt);
|
if (!emptyTranscript) this._bufferedTranscripts.push(evt);
|
||||||
if (!['soniox', 'aws', 'microsoft', 'deepgram'].includes(this.vendor)) this._startTranscribing(ep);
|
if (!['soniox', 'aws', 'microsoft', 'deepgram'].includes(this.vendor)) this._startTranscribing(ep);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user