Fix for sending synthesized-audio verb:status event when using TTS streaming (#1366)

https://github.com/jambonz/jambonz-feature-server/issues/1365
This commit is contained in:
rammohan-y
2025-09-23 19:00:05 +05:30
committed by GitHub
parent a95a6d1683
commit ec786ef1dd

View File

@@ -327,6 +327,13 @@ class TtsTask extends Task {
this.playbackIds.push(extractPlaybackId(filePath));
this.logger.debug({playbackIds: this.playbackIds}, 'Say: a streaming tts api will be used');
const modifiedPath = filePath.replace('say:{', `say:{session-uuid=${ep.uuid},`);
this.notifyStatus({
event: 'synthesized-audio',
vendor,
language,
servedFromCache,
'id': this.id
});
return modifiedPath;
}
return filePath;