mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +00:00
send stream_empty when tts streaming has nothing to play
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user