mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
parent
34678b8a8f
commit
e3adaa4a75
@ -657,6 +657,21 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
|
||||
else if (comboBoxWhisperEngine.Text == WhisperChoice.Cpp)
|
||||
{
|
||||
Configuration.Settings.Tools.WhisperChoice = WhisperChoice.Cpp;
|
||||
var fileName = WhisperHelper.GetWhisperPathAndFileName();
|
||||
if (!File.Exists(fileName) || WhisperDownload.IsOld(fileName, WhisperChoice.Cpp))
|
||||
{
|
||||
if (MessageBox.Show(string.Format(LanguageSettings.Current.Settings.DownloadX, "Whisper CPP"), "Subtitle Edit", MessageBoxButtons.YesNoCancel) == DialogResult.Yes)
|
||||
{
|
||||
using (var downloadForm = new WhisperDownload(WhisperChoice.Cpp))
|
||||
{
|
||||
if (downloadForm.ShowDialog(this) != DialogResult.OK)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Init();
|
||||
}
|
||||
else if (comboBoxWhisperEngine.Text == WhisperChoice.ConstMe)
|
||||
|
Loading…
Reference in New Issue
Block a user