Fix variable name in WhisperAudioToText subtitle loading

Corrected the input filename variable from srtFileName to vttFileName to ensure the correct subtitle format is processed. This fixes potential misloading issues when handling WebVTT files.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-10-21 19:36:11 +01:00
parent 5c9346c32c
commit 48a5ad91b3

View File

@ -1049,8 +1049,8 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
}
else
{
var rawText = FileUtil.ReadAllLinesShared(srtFileName, Encoding.UTF8);
new WebVTT().LoadSubtitle(sub, rawText, srtFileName);
var rawText = FileUtil.ReadAllLinesShared(vttFileName, Encoding.UTF8);
new WebVTT().LoadSubtitle(sub, rawText, vttFileName);
outputText?.Add($"Loading result from {vttFileName}{Environment.NewLine}");
}