Only show Whisper CPP for 32-bit + again add "stable-ts"

Related to #7566
This commit is contained in:
niksedk 2023-10-29 10:21:23 +01:00
parent 2769d3c2f9
commit 97a602a122

View File

@ -133,15 +133,24 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
public static void InitializeWhisperEngines(NikseComboBox cb)
{
cb.Items.Clear();
var is64BitOs = IntPtr.Size * 8 == 64;
if (!is64BitOs)
{
cb.Items.Add(WhisperChoice.Cpp);
cb.SelectedIndex = 0;
return;
}
var engines = new List<string> { WhisperChoice.OpenAi };
if (Configuration.IsRunningOnWindows && IntPtr.Size * 8 == 64)
if (Configuration.IsRunningOnWindows)
{
engines.Add(WhisperChoice.PurfviewFasterWhisper);
engines.Add(WhisperChoice.ConstMe);
}
engines.Add(WhisperChoice.Cpp);
engines.Add(WhisperChoice.CTranslate2);
// engines.Add(WhisperChoice.StableTs);
engines.Add(WhisperChoice.StableTs);
engines.Add(WhisperChoice.WhisperX);
foreach (var engine in engines)