mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-07-04 19:32:01 +00:00
fixed callsession cannot close tts streaming (#1472)
This commit is contained in:
@@ -504,7 +504,12 @@ class CallSession extends Emitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get isTtsStreamEnabled() {
|
get isTtsStreamEnabled() {
|
||||||
return this.backgroundTaskManager.isTaskRunning('ttsStream');
|
// 1st background tts stream
|
||||||
|
return this.backgroundTaskManager.isTaskRunning('ttsStream') ||
|
||||||
|
// 2nd current task streaming tts
|
||||||
|
TaskName.Say === this.currentTask?.name && this.currentTask?.isStreamingTts ||
|
||||||
|
// 3rd nested verb is streaming tts
|
||||||
|
TaskName.Gather === this.currentTask?.name && this.currentTask.sayTask?.isStreamingTts;
|
||||||
}
|
}
|
||||||
|
|
||||||
get isListenEnabled() {
|
get isListenEnabled() {
|
||||||
|
|||||||
Reference in New Issue
Block a user