diff --git a/src/ui/Forms/AudioToText/WhisperAudioToText.cs b/src/ui/Forms/AudioToText/WhisperAudioToText.cs index 38eea6877..b116a5ade 100644 --- a/src/ui/Forms/AudioToText/WhisperAudioToText.cs +++ b/src/ui/Forms/AudioToText/WhisperAudioToText.cs @@ -560,17 +560,12 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText Configuration.Settings.Tools.WhisperPostProcessingFixShortDuration, Configuration.Settings.Tools.WhisperPostProcessingSplitLines); + UpdateLog(); + SeLogger.WhisperInfo(textBoxLog.Text); if (transcript == null || transcript.Paragraphs.Count == 0) { - UpdateLog(); - SeLogger.WhisperInfo(textBoxLog.Text); IncompleteModelName = comboBoxModels.Text; } - else - { - UpdateLog(); - SeLogger.WhisperInfo(textBoxLog.Text); - } timer1.Stop(); @@ -1054,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}"); }