Repository navigation
I made a modified Google Colab notebook with more options (line width, line count, speaker labels, etc.) #366
BlohoJo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
https://colab.research.google.com/drive/1k6MXAdmBgj1-cBGFmPQB9shwjnY0m98L [Download]
The notebook has some "auto balancing" code for lines so line breaks don't result in a second subtitle line that is only one or two words.
It also tries to balance sentences so that you don't have one subtitle that is two lines long, then the next subtitle has only one one or two words. You can control this using the
MIN_SPLIT_SENTENCE_LENGTHvariable, so if you want, you can have subtitles that end sentences that are shorter. But I recommend leaving it at the defaults for the best balance.Of course it's not perfect, you have to go through the SRT and look for glitches and quirks.
If your speaker says a lot of years ("...in 1976, we were..."), I recommend keeping
suppress_numeralsset toFalse.Finally, I had problems using
large-v2where it would miss entire sentences at certain points, especially when the speaker is about to quote someone. It will tend to miss the quote, then pick back up at the next sentence, or maybe even a few sentences later. Sometimes the subtitles will be misaligned at these points, but will pick back up later. Anyway, that went away when I switched tolarge-v3.I haven't thoroughly tested the
ONLY_LABEL_SPEAKER_CHANGESfunctionality yet. Try it out! If it messes up, let me know.All reactions