This commit is contained in:
niksedk 2023-03-07 12:10:57 +01:00
parent 6a84b09ee9
commit 625bd64688
2 changed files with 4 additions and 11 deletions

View File

@ -248,7 +248,10 @@ namespace Nikse.SubtitleEdit.Core.AudioToText
public static string GetWhisperTranslateParameter()
{
return Configuration.Settings.Tools.WhisperChoice == WhisperChoice.Cpp ? "--translate " : "--task translate ";
return Configuration.Settings.Tools.WhisperChoice == WhisperChoice.Cpp ||
Configuration.Settings.Tools.WhisperChoice == WhisperChoice.ConstMe
? "--translate "
: "--task translate ";
}
}
}

View File

@ -138,16 +138,6 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
numericUpDownCharsPerSub.Visible = Configuration.Settings.Tools.WhisperChoice == WhisperChoice.Cpp;
labelCharsPerSub.Left = numericUpDownCharsPerSub.Left - labelCharsPerSub.Width - 9;
labelCharsPerSub.Visible = Configuration.Settings.Tools.WhisperChoice == WhisperChoice.Cpp;
if (Configuration.Settings.Tools.WhisperChoice == WhisperChoice.ConstMe)
{
checkBoxTranslateToEnglish.Checked = false;
checkBoxTranslateToEnglish.Enabled = false;
}
else
{
checkBoxTranslateToEnglish.Enabled = true;
}
}
public static void FillModels(ComboBox comboBoxModels, string lastDownloadedModel)