Remember faster whisper xxl advanced settings - thx SleepyCatten :)

Fix #8973
This commit is contained in:
Nikolaj Olsson 2024-11-14 18:24:44 +01:00
parent 0479df9fac
commit cc6d97c8ac
2 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,8 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
Configuration.Settings.Tools.WhisperExtraSettings = comboBoxWhisperExtra.Text; 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) if (Configuration.Settings.Tools.WhisperPurfviewFasterWhisperDefaultCmd != comboBoxWhisperExtra.Text)
{ {

View File

@ -2315,6 +2315,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
Configuration.Settings.Tools.WhisperExtraSettings.Contains("--standard", StringComparison.Ordinal)) 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("--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) && else if ((engine == WhisperChoice.PurfviewFasterWhisper || engine == WhisperChoice.PurfviewFasterWhisperXXL) &&
!Configuration.Settings.Tools.WhisperExtraSettings.Contains("--standard", StringComparison.Ordinal) && !Configuration.Settings.Tools.WhisperExtraSettings.Contains("--standard", StringComparison.Ordinal) &&
@ -2433,7 +2434,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
{ {
using (var form = new WhisperAdvanced(comboBoxWhisperEngine.Text)) using (var form = new WhisperAdvanced(comboBoxWhisperEngine.Text))
{ {
var res = form.ShowDialog(this); form.ShowDialog(this);
SetAdvancedLabel(); SetAdvancedLabel();
} }
} }