fixed gather cannot timeout if listenDuringPrompt is true (#1276)

* fixed gather cannot timeout if listenDuringPrompt is true

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2025-07-15 22:53:22 -04:00
1 parent ee895b4046
commit e0e2ade289
2 files changed
+14 -4

No files matched your search

+5
View File
@@ -3009,6 +3009,11 @@ Duration=${duration} `
const task = this.currentTask;
if (task && TaskName.Say === task.name) {
task.notifyTtsStreamIsEmpty();
} else if (
// If Gather nested say task is streaming
TaskName.Gather === task.name && task.sayTask && task.sayTask.isStreamingTts) {
const sayTask = task.sayTask;
sayTask.notifyTtsStreamIsEmpty();
}
}