mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
Remember faster whisper xxl advanced settings - thx SleepyCatten :)
Fix #8973
This commit is contained in:
parent
0479df9fac
commit
cc6d97c8ac
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user