From 9d27fd0a9394f5c377ffb1104001e506dac8fdfd Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 1 Apr 2022 14:37:10 -0400 Subject: [PATCH] gather: restart if we get an empty transcript (looking at you, Azure) --- 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 64cbe468..3a932dcc 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -387,7 +387,7 @@ class TaskGather extends Task { if (evt.is_final) { if (evt.alternatives[0].transcript === '') { this.logger.info({evt}, 'TaskGather:_onTranscription - got empty transcript, listen again'); - this._startTranscribing(ep); + return this._startTranscribing(ep); } this._resolve('speech', evt); }