From b37aa56fa6ab4175868c1305babd1e531bd9c595 Mon Sep 17 00:00:00 2001 From: Steve White Date: Fri, 6 Jun 2025 11:58:48 -0500 Subject: [PATCH] Added persistence of TTS settings in dialog save/restore. --- frontend/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/js/app.js b/frontend/js/app.js index 213a3b9..39ee24a 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -564,6 +564,10 @@ async function initializeDialogEditor() { if (item.type === 'speech') { cleanItem.speaker_id = item.speaker_id; cleanItem.text = item.text; + // Include TTS parameters if they exist (will use defaults if not present) + if (item.exaggeration !== undefined) cleanItem.exaggeration = item.exaggeration; + if (item.cfg_weight !== undefined) cleanItem.cfg_weight = item.cfg_weight; + if (item.temperature !== undefined) cleanItem.temperature = item.temperature; } else if (item.type === 'silence') { cleanItem.duration = item.duration; }