From cc6d97c8ac5fba004e5f41db664d61ff62540b8c Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Thu, 14 Nov 2024 18:24:44 +0100 Subject: [PATCH] Remember faster whisper xxl advanced settings - thx SleepyCatten :) Fix #8973 --- src/ui/Forms/AudioToText/WhisperAdvanced.cs | 3 ++- src/ui/Forms/AudioToText/WhisperAudioToText.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/Forms/AudioToText/WhisperAdvanced.cs b/src/ui/Forms/AudioToText/WhisperAdvanced.cs index 67172b585..1ddc2d3da 100644 --- a/src/ui/Forms/AudioToText/WhisperAdvanced.cs +++ b/src/ui/Forms/AudioToText/WhisperAdvanced.cs @@ -83,7 +83,8 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText Configuration.Settings.Tools.WhisperExtraSettings = comboBoxWhisperExtra.Text; - if (Configuration.Settings.Tools.WhisperChoice == WhisperChoice.PurfviewFasterWhisper) + if (Configuration.Settings.Tools.WhisperChoice == WhisperChoice.PurfviewFasterWhisper || + Configuration.Settings.Tools.WhisperChoice == WhisperChoice.PurfviewFasterWhisperXXL) { if (Configuration.Settings.Tools.WhisperPurfviewFasterWhisperDefaultCmd != comboBoxWhisperExtra.Text) { diff --git a/src/ui/Forms/AudioToText/WhisperAudioToText.cs b/src/ui/Forms/AudioToText/WhisperAudioToText.cs index 9e1d3c494..1230ec9fd 100644 --- a/src/ui/Forms/AudioToText/WhisperAudioToText.cs +++ b/src/ui/Forms/AudioToText/WhisperAudioToText.cs @@ -2315,6 +2315,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText Configuration.Settings.Tools.WhisperExtraSettings.Contains("--standard", StringComparison.Ordinal)) { Configuration.Settings.Tools.WhisperExtraSettings = Configuration.Settings.Tools.WhisperExtraSettings.Replace("--standard", string.Empty).Trim(); + Configuration.Settings.Tools.WhisperExtraSettings = Configuration.Settings.Tools.WhisperExtraSettings.Replace("--beep_off", string.Empty).Trim(); } else if ((engine == WhisperChoice.PurfviewFasterWhisper || engine == WhisperChoice.PurfviewFasterWhisperXXL) && !Configuration.Settings.Tools.WhisperExtraSettings.Contains("--standard", StringComparison.Ordinal) && @@ -2433,7 +2434,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText { using (var form = new WhisperAdvanced(comboBoxWhisperEngine.Text)) { - var res = form.ShowDialog(this); + form.ShowDialog(this); SetAdvancedLabel(); } }