A bit more checking of Whisper errors

This commit is contained in:
Nikolaj Olsson 2024-09-05 19:13:18 +02:00
parent 849b6a00f5
commit 6840c360f3

View File

@ -1116,10 +1116,18 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
{
UnknownArgument = true;
}
else if (outLine.Data.Contains("error: unknown arguments: ", StringComparison.OrdinalIgnoreCase))
{
UnknownArgument = true;
}
else if (outLine.Data.Contains("error: unrecognized argument: ", StringComparison.OrdinalIgnoreCase))
{
UnknownArgument = true;
}
else if (outLine.Data.Contains("error: unrecognized arguments: ", StringComparison.OrdinalIgnoreCase))
{
UnknownArgument = true;
}
if (outLine.Data.Contains("running on: CUDA", StringComparison.OrdinalIgnoreCase))
{