mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
send audio on barge in gather
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user