Add stability + similarity language tags

This commit is contained in:
Nikolaj Olsson 2024-10-23 06:51:10 +02:00
parent a926b62876
commit 07f76ecfc2
5 changed files with 14 additions and 0 deletions

View File

@ -3188,6 +3188,8 @@ Continue?</RestoreDefaultSettingsMsg>
<AutoContinue>Auto-continue</AutoContinue> <AutoContinue>Auto-continue</AutoContinue>
<Regenerate>Regenerate</Regenerate> <Regenerate>Regenerate</Regenerate>
<Speed>Speed</Speed> <Speed>Speed</Speed>
<Stability>Stability</Stability>
<Similarity>Similarity</Similarity>
</TextToSpeech> </TextToSpeech>
<TimedTextSmpteTiming> <TimedTextSmpteTiming>
<Title>SMPTE timing</Title> <Title>SMPTE timing</Title>

View File

@ -126,6 +126,8 @@ namespace Nikse.SubtitleEdit.Forms.Tts
checkBoxAudioEncoding.Text = LanguageSettings.Current.TextToSpeech.CustomAudioEncoding; checkBoxAudioEncoding.Text = LanguageSettings.Current.TextToSpeech.CustomAudioEncoding;
linkLabelCustomAudio.Text = LanguageSettings.Current.Settings.Title; linkLabelCustomAudio.Text = LanguageSettings.Current.Settings.Title;
linkLabelCustomAudio.Left = checkBoxAudioEncoding.Right; linkLabelCustomAudio.Left = checkBoxAudioEncoding.Right;
labelStability.Text = LanguageSettings.Current.TextToSpeech.Stability;
labelSimilarity.Text = LanguageSettings.Current.TextToSpeech.Similarity;
buttonOK.Text = LanguageSettings.Current.General.Ok; buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel; buttonCancel.Text = LanguageSettings.Current.General.Cancel;
UiUtil.FixLargeFonts(this, buttonOK); UiUtil.FixLargeFonts(this, buttonOK);

View File

@ -3586,6 +3586,8 @@ can edit in same subtitle file (collaboration)",
Play = "Play", Play = "Play",
Regenerate = "Regenerate", Regenerate = "Regenerate",
Speed = "Speed", Speed = "Speed",
Stability = "Stability",
Similarity = "Similarity",
}; };
TimedTextSmpteTiming = new LanguageStructure.TimedTextSmpteTiming TimedTextSmpteTiming = new LanguageStructure.TimedTextSmpteTiming

View File

@ -8746,6 +8746,12 @@ namespace Nikse.SubtitleEdit.Logic
case "TextToSpeech/Speed": case "TextToSpeech/Speed":
language.TextToSpeech.Speed = reader.Value; language.TextToSpeech.Speed = reader.Value;
break; break;
case "TextToSpeech/Stability":
language.TextToSpeech.Stability = reader.Value;
break;
case "TextToSpeech/Similarity":
language.TextToSpeech.Similarity = reader.Value;
break;
case "TimedTextSmpteTiming/Title": case "TimedTextSmpteTiming/Title":
language.TimedTextSmpteTiming.Title = reader.Value; language.TimedTextSmpteTiming.Title = reader.Value;
break; break;

View File

@ -3397,6 +3397,8 @@
public string AutoContinue { get; set; } public string AutoContinue { get; set; }
public string Regenerate { get; set; } public string Regenerate { get; set; }
public string Speed { get; set; } public string Speed { get; set; }
public string Stability { get; set; }
public string Similarity { get; set; }
} }
public class TimedTextSmpteTiming public class TimedTextSmpteTiming