Automatically correcting phrasing and misrecognized words in speech-to-text captions by using a script

from blog Sacha Chua, | ↗ original
I usually write my scripts with phrases that could be turned into the subtitles. I figured I might as well combine that information with the WhisperX transcripts which I use to cut out my false starts and oopses. To do that, I use the string-distance function, which calculates how similar strings are, based on the Levenshtein [distance]...