Added persistence of TTS settings in dialog save/restore.
This commit is contained in:
parent
f9e952286d
commit
b37aa56fa6
|
@ -564,6 +564,10 @@ async function initializeDialogEditor() {
|
||||||
if (item.type === 'speech') {
|
if (item.type === 'speech') {
|
||||||
cleanItem.speaker_id = item.speaker_id;
|
cleanItem.speaker_id = item.speaker_id;
|
||||||
cleanItem.text = item.text;
|
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') {
|
} else if (item.type === 'silence') {
|
||||||
cleanItem.duration = item.duration;
|
cleanItem.duration = item.duration;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue