diff --git a/LanguageBaseEnglish.xml b/LanguageBaseEnglish.xml index b7a0591e3..ac88c29c2 100644 --- a/LanguageBaseEnglish.xml +++ b/LanguageBaseEnglish.xml @@ -3188,6 +3188,8 @@ Continue? Auto-continue Regenerate Speed + Stability + Similarity SMPTE timing diff --git a/src/ui/Forms/Tts/TextToSpeech.cs b/src/ui/Forms/Tts/TextToSpeech.cs index 44e98ea78..ae71818e2 100644 --- a/src/ui/Forms/Tts/TextToSpeech.cs +++ b/src/ui/Forms/Tts/TextToSpeech.cs @@ -126,6 +126,8 @@ namespace Nikse.SubtitleEdit.Forms.Tts checkBoxAudioEncoding.Text = LanguageSettings.Current.TextToSpeech.CustomAudioEncoding; linkLabelCustomAudio.Text = LanguageSettings.Current.Settings.Title; linkLabelCustomAudio.Left = checkBoxAudioEncoding.Right; + labelStability.Text = LanguageSettings.Current.TextToSpeech.Stability; + labelSimilarity.Text = LanguageSettings.Current.TextToSpeech.Similarity; buttonOK.Text = LanguageSettings.Current.General.Ok; buttonCancel.Text = LanguageSettings.Current.General.Cancel; UiUtil.FixLargeFonts(this, buttonOK); diff --git a/src/ui/Logic/Language.cs b/src/ui/Logic/Language.cs index 064db57d3..9935e9979 100644 --- a/src/ui/Logic/Language.cs +++ b/src/ui/Logic/Language.cs @@ -3586,6 +3586,8 @@ can edit in same subtitle file (collaboration)", Play = "Play", Regenerate = "Regenerate", Speed = "Speed", + Stability = "Stability", + Similarity = "Similarity", }; TimedTextSmpteTiming = new LanguageStructure.TimedTextSmpteTiming diff --git a/src/ui/Logic/LanguageDeserializer.cs b/src/ui/Logic/LanguageDeserializer.cs index 5362b4996..2b26435d2 100644 --- a/src/ui/Logic/LanguageDeserializer.cs +++ b/src/ui/Logic/LanguageDeserializer.cs @@ -8746,6 +8746,12 @@ namespace Nikse.SubtitleEdit.Logic case "TextToSpeech/Speed": language.TextToSpeech.Speed = reader.Value; break; + case "TextToSpeech/Stability": + language.TextToSpeech.Stability = reader.Value; + break; + case "TextToSpeech/Similarity": + language.TextToSpeech.Similarity = reader.Value; + break; case "TimedTextSmpteTiming/Title": language.TimedTextSmpteTiming.Title = reader.Value; break; diff --git a/src/ui/Logic/LanguageStructure.cs b/src/ui/Logic/LanguageStructure.cs index 080c9c420..f3982b0cd 100644 --- a/src/ui/Logic/LanguageStructure.cs +++ b/src/ui/Logic/LanguageStructure.cs @@ -3397,6 +3397,8 @@ public string AutoContinue { get; set; } public string Regenerate { get; set; } public string Speed { get; set; } + public string Stability { get; set; } + public string Similarity { get; set; } } public class TimedTextSmpteTiming