This commit is contained in:
Nikolaj Olsson 2024-10-26 20:34:46 +02:00
parent a8c80f6238
commit fb5e4365a2

View File

@ -43,16 +43,14 @@ namespace Nikse.SubtitleEdit.Forms.Tts
nikseUpDownStability.Value = (int)Math.Round(Configuration.Settings.Tools.TextToSpeechElevenLabsStability * 100.0); nikseUpDownStability.Value = (int)Math.Round(Configuration.Settings.Tools.TextToSpeechElevenLabsStability * 100.0);
nikseUpDownSimilarity.Value = (int)Math.Round(Configuration.Settings.Tools.TextToSpeechElevenLabsSimilarity * 100.0); nikseUpDownSimilarity.Value = (int)Math.Round(Configuration.Settings.Tools.TextToSpeechElevenLabsSimilarity * 100.0);
if (engine.Id == TextToSpeech.TextToSpeechEngineId.ElevenLabs) if (engine.Id != TextToSpeech.TextToSpeechEngineId.ElevenLabs)
{
}
else
{ {
labelStability.Visible = false; labelStability.Visible = false;
labelSimilarity.Visible = false; labelSimilarity.Visible = false;
nikseUpDownStability.Visible = false; nikseUpDownStability.Visible = false;
nikseUpDownSimilarity.Visible = false; nikseUpDownSimilarity.Visible = false;
TextBoxReGenerate.Height = buttonOK.Top - TextBoxReGenerate.Top - 10; TextBoxReGenerate.Height = buttonOK.Top - TextBoxReGenerate.Top - 10;
nikseUpDownSimilarity.Left = labelSimilarity.Right + 3;
} }
} }