From 2595f527ffb202c1a2e6ef58063d5ff576e619d7 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 13 Apr 2024 09:59:02 -0400 Subject: [PATCH] gather: fix bug where empty deepgram transcript saved incorrectly --- lib/tasks/gather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 6ea2ec2a..778be7c4 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -837,7 +837,7 @@ class TaskGather extends SttTask { if (this.bargein && (words + bufferedWords) < this.minBargeinWordCount) { this.logger.debug({evt, words, bufferedWords}, '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); return; }