From 3084a9d6baad837b3c68c573814f0823ca9a673a Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 3 Mar 2023 13:39:23 -0500 Subject: [PATCH] #241 - gather bargein on Nuance has to be based on start of speech event (#246) --- lib/tasks/gather.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 1476fb82..7bd33d4b 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -655,6 +655,9 @@ class TaskGather extends Task { _onStartOfSpeech(cs, ep) { this.logger.debug('TaskGather:_onStartOfSpeech'); + if (this.bargein) { + this._killAudio(cs); + } } _onTranscriptionComplete(cs, ep) { this.logger.debug('TaskGather:_onTranscriptionComplete');