Added persistence of TTS settings in dialog save/restore.

This commit is contained in:
Steve White 2025-06-06 11:58:48 -05:00
parent f9e952286d
commit b37aa56fa6
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}