mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Fix for last commit
This commit is contained in:
parent
a3155236e5
commit
25cfeb9c79
@ -203,6 +203,7 @@ Read more info (web)?</WhisperNotFound>
|
||||
<MaxCharsPerSubtitle>Max. chars per subtitle line</MaxCharsPerSubtitle>
|
||||
<RemoveTemporaryFiles>Remove temporary files</RemoveTemporaryFiles>
|
||||
<SetCppConstMeFolder>Set CPP/Const-me models folder...</SetCppConstMeFolder>
|
||||
<OnlyRunPostProcessing>Run only post-processing/adjust timings</OnlyRunPostProcessing>
|
||||
</AudioToText>
|
||||
<AssaAttachments>
|
||||
<Title>Advanced Sub Station Alpha attachments</Title>
|
||||
|
@ -1534,8 +1534,12 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
|
||||
_subtitle = WhisperTimingFixer.ShortenLongTexts(_subtitle);
|
||||
_subtitle = WhisperTimingFixer.ShortenViaWavePeaks(_subtitle, wavePeaks);
|
||||
}
|
||||
else if (!checkBoxUsePostProcessing.Checked)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TranscribedSubtitle = postProcessor.Fix(AudioToTextPostProcessor.Engine.Whisper, _subtitle, true, true, true, true, true, true);
|
||||
TranscribedSubtitle = postProcessor.Fix(AudioToTextPostProcessor.Engine.Whisper, _subtitle, checkBoxUsePostProcessing.Checked, true, true, true, true, true);
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
finally
|
||||
|
@ -350,7 +350,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
MaxCharsPerSubtitle = "Max. chars per subtitle line",
|
||||
RemoveTemporaryFiles = "Remove temporary files",
|
||||
SetCppConstMeFolder = "Set CPP/Const-me models folder...",
|
||||
OnlyRunPostProcessing = "",
|
||||
OnlyRunPostProcessing = "Run only post-processing/adjust timings",
|
||||
};
|
||||
|
||||
AssaAttachments = new LanguageStructure.AssaAttachments
|
||||
|
@ -550,6 +550,9 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
case "AudioToText/SetCppConstMeFolder":
|
||||
language.AudioToText.SetCppConstMeFolder = reader.Value;
|
||||
break;
|
||||
case "AudioToText/OnlyRunPostProcessing":
|
||||
language.AudioToText.OnlyRunPostProcessing = reader.Value;
|
||||
break;
|
||||
case "AssaAttachments/Title":
|
||||
language.AssaAttachments.Title = reader.Value;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user