mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 15:02:35 +01:00
Work on #6721
This commit is contained in:
parent
6a84b09ee9
commit
625bd64688
@ -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 ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user