change timeout to 1

This commit is contained in:
akirilyuk
2022-02-03 18:32:50 +01:00
parent 1050eb47cd
commit f8e88f085f

View File

@@ -25,7 +25,7 @@ class TaskGather extends Task {
this.minBargeinWordCount = this.data.minBargeinWordCount || 1; this.minBargeinWordCount = this.data.minBargeinWordCount || 1;
// 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.timeout = this.data.listenAfterSpeech === false ? 0 : (this.timeout || 15) * 1000; this.timeout = this.data.listenAfterSpeech === false ? 1 : (this.timeout || 15) * 1000;
this.interim = this.partialResultCallback || this.bargein; this.interim = this.partialResultCallback || this.bargein;
if (this.data.recognizer) { if (this.data.recognizer) {
const recognizer = this.data.recognizer; const recognizer = this.data.recognizer;