#241 - gather bargein on Nuance has to be based on start of speech event (#246)

This commit is contained in:
Dave Horton
2023-03-03 13:39:23 -05:00
committed by GitHub
parent 1c683f1142
commit 3084a9d6ba

View File

@@ -655,6 +655,9 @@ class TaskGather extends Task {
_onStartOfSpeech(cs, ep) { _onStartOfSpeech(cs, ep) {
this.logger.debug('TaskGather:_onStartOfSpeech'); this.logger.debug('TaskGather:_onStartOfSpeech');
if (this.bargein) {
this._killAudio(cs);
}
} }
_onTranscriptionComplete(cs, ep) { _onTranscriptionComplete(cs, ep) {
this.logger.debug('TaskGather:_onTranscriptionComplete'); this.logger.debug('TaskGather:_onTranscriptionComplete');