send audio on barge in gather

This commit is contained in:
akirilyuk
2022-02-02 15:56:14 +01:00
parent c7c99f45a4
commit b9dfecceff

View File

@@ -305,6 +305,7 @@ class TaskGather extends Task {
if (this.bargein && evt.alternatives[0].transcript.split(' ').length >= this.minBargeinWordCount) { if (this.bargein && evt.alternatives[0].transcript.split(' ').length >= this.minBargeinWordCount) {
this.logger.debug('Gather:_onTranscription - killing audio due to bargein'); this.logger.debug('Gather:_onTranscription - killing audio due to bargein');
this._killAudio(cs); this._killAudio(cs);
this._resolve('speech', evt);
} }
if (this.partialResultHook) { if (this.partialResultHook) {
this.cs.requestor.request(this.partialResultHook, Object.assign({speech: evt}, this.cs.callInfo)) this.cs.requestor.request(this.partialResultHook, Object.assign({speech: evt}, this.cs.callInfo))