From a4e358596e1a3c79d3ad453d942a8d4bfb66e672 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 10 May 2022 15:14:10 -0400 Subject: [PATCH] emit vad event on partial transcript --- lib/tasks/gather.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index ab191cd0..49bde31a 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -430,6 +430,7 @@ class TaskGather extends Task { evt.alternatives[0].transcript.split(' ').length >= this.minBargeinWordCount) { if (!this.playComplete) { this.logger.debug({transcript: evt.alternatives[0].transcript}, 'killing audio due to speech'); + this.emit('vad'); } this._killAudio(cs); }