mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +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.WhisperPostProcessingFixShortDuration,
|
||||||
Configuration.Settings.Tools.WhisperPostProcessingSplitLines);
|
Configuration.Settings.Tools.WhisperPostProcessingSplitLines);
|
||||||
|
|
||||||
|
UpdateLog();
|
||||||
|
SeLogger.WhisperInfo(textBoxLog.Text);
|
||||||
if (transcript == null || transcript.Paragraphs.Count == 0)
|
if (transcript == null || transcript.Paragraphs.Count == 0)
|
||||||
{
|
{
|
||||||
UpdateLog();
|
|
||||||
SeLogger.WhisperInfo(textBoxLog.Text);
|
|
||||||
IncompleteModelName = comboBoxModels.Text;
|
IncompleteModelName = comboBoxModels.Text;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
UpdateLog();
|
|
||||||
SeLogger.WhisperInfo(textBoxLog.Text);
|
|
||||||
}
|
|
||||||
|
|
||||||
timer1.Stop();
|
timer1.Stop();
|
||||||
|
|
||||||
@ -1054,8 +1049,8 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var rawText = FileUtil.ReadAllLinesShared(srtFileName, Encoding.UTF8);
|
var rawText = FileUtil.ReadAllLinesShared(vttFileName, Encoding.UTF8);
|
||||||
new WebVTT().LoadSubtitle(sub, rawText, srtFileName);
|
new WebVTT().LoadSubtitle(sub, rawText, vttFileName);
|
||||||
outputText?.Add($"Loading result from {vttFileName}{Environment.NewLine}");
|
outputText?.Add($"Loading result from {vttFileName}{Environment.NewLine}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user