From b9dfecceffe4a89869183cc152d8f57146399257 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Wed, 2 Feb 2022 15:56:14 +0100 Subject: [PATCH] send audio on barge in gather --- lib/tasks/gather.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 0dbe4953..1803cb01 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -305,6 +305,7 @@ class TaskGather extends Task { if (this.bargein && evt.alternatives[0].transcript.split(' ').length >= this.minBargeinWordCount) { this.logger.debug('Gather:_onTranscription - killing audio due to bargein'); this._killAudio(cs); + this._resolve('speech', evt); } if (this.partialResultHook) { this.cs.requestor.request(this.partialResultHook, Object.assign({speech: evt}, this.cs.callInfo))