mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
fix listen after speech
This commit is contained in:
@@ -26,7 +26,7 @@ class TaskGather extends Task {
|
|||||||
// this is specially for barge in where we want to make a bargebale promt
|
// this is specially for barge in where we want to make a bargebale promt
|
||||||
// to a user without listening after the say task has finished
|
// to a user without listening after the say task has finished
|
||||||
this.logger.debug({opts}, 'created gather task');
|
this.logger.debug({opts}, 'created gather task');
|
||||||
this.listenAfterSpeech = this.data.listenAfterSpeech === false;
|
this.listenAfterSpeech = typeof this.data.listenAfterSpeech === "boolean" ? this.data.listenAfterSpeech : true;
|
||||||
this.timeout = (this.timeout || 15) * 1000;
|
this.timeout = (this.timeout || 15) * 1000;
|
||||||
this.interim = this.partialResultCallback || this.bargein;
|
this.interim = this.partialResultCallback || this.bargein;
|
||||||
if (this.data.recognizer) {
|
if (this.data.recognizer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user