Compare commits

...

1 Commits

Author SHA1 Message Date
Hoan HL
c17bb1f1e8 send stream_empty when tts streaming has nothing to play 2025-10-24 11:57:25 +07:00

View File

@@ -3095,6 +3095,9 @@ Duration=${duration} `
}
_onTtsStreamingEmpty() {
this.requestor?.request('tts:streaming-event', '/streaming-event', {event_type: 'stream_empty'})
.catch((err) => this.logger.info({err}, 'CallSession:_onTtsStreamingEmpty - Error sending'));
const task = this.currentTask;
if (task && TaskName.Say === task.name) {
task.notifyTtsStreamIsEmpty();