mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 20:22:41 +01:00
Merge pull request #8929 from ivandrofly/dev
WhisperAudioToText: Bug fix 🐛
This commit is contained in:
commit
cc72a41711
@ -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}");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user