Sub topic 12
Creating and Correcting the Transcript
This chapter covers how to produce a transcript of your lecture and bring it to publishable accuracy. The transcript is the text source for your SRT caption file, which the next chapter covers.
Prerequisites assumed: You know the editing workflow from earlier chapters. You can cut segments from a lecture, so you know the video's timeline changes after a cut. You can run a command in a terminal. You have a lecture file such as lecture_cut.mp4.
Why transcribe after cutting
Transcribe the video after you have finished cutting, not before. A transcript made from the raw recording has timestamps that match the raw file. Every cut shifts everything after it. If you remove the section from 72 s to 80 s, a word spoken at 100 s in the raw file now plays at 92 s. Captions timed to the old file drift out of sync with the new one.
The same applies to later changes that move time. Any edit that adds, removes, or speeds up material invalidates the timestamps. Zooms and other visual changes that do not change duration are safe.
The dependency order is therefore:
- Finish cuts and sync fixes.
- Generate the transcript from the cut video.
- Correct the text.
- Export to SRT and check timing.
Three ways to get a first draft
You have three common options. They differ in accuracy, cost, and privacy.
| Method | Strengths | Weaknesses |
|---|---|---|
| Editor's built-in transcription | Integrated with the timeline; edits to the text can drive cuts | Quality varies; may send audio to a cloud service |
| Cloud speech-to-text service | Often strong accuracy; supports custom vocabularies | Cost per minute; audio leaves your machine |
| Local speech recognition model | Private; no per-minute cost | Needs a capable computer; slower on weak hardware |
| Manual typing | Full control | Very slow; roughly several times the video length |
For most lectures, generate an automatic draft and then correct it. Correcting a draft is much faster than typing from scratch, provided the draft is reasonably accurate.
Preparing the audio
Speech recognition works on audio. Extract it first, in a format most tools accept: mono, 16 kHz, uncompressed WAV.
ffmpeg -i lecture_cut.mp4 -vn -ac 1 -ar 16000 -c:a pcm_s16le lecture_audio.wavHere -vn drops the video, -ac 1 mixes to one channel, -ar 16000 sets a 16 kHz sample rate, and -c:a pcm_s16le writes uncompressed 16-bit audio. Mono 16 kHz is a common input for recognition models, and it keeps the file small.
Running a local model
One widely used open-source option is OpenAI's Whisper model, which can write SRT directly. The example below assumes you installed the openai-whisper Python package and have ffmpeg on your path.
whisper lecture_audio.wav --model small --language en --output_format srt --output_dir transcriptThe command writes transcript/lecture_audio.srt. Larger models such as medium are more accurate and slower. Setting --language avoids language detection mistakes at the start of a recording.
Tool options change between versions. Check whisper --help on your installation if a flag is rejected.
What automatic transcripts get wrong
Automatic drafts usually read well but contain specific, predictable errors. Knowing them tells you where to look.
- Technical terms and names. A model may write "Kubernetes" as "cooper nettys" or a colleague's name phonetically.
- Homophones. "Their" and "there", "principal" and "principle". The model picks the likelier word, not the one you meant.
- Numbers and units. "Fifteen" versus "fifty" is a common slip. Check values, versions, and dates against your slides.
- Acronyms. They may be spelled out, merged into one word, or lowercased.
- Missing or wrong punctuation. This affects how sentences break into cues.
- Dropped or invented text. Models sometimes skip quiet speech. In silence or music they can also produce repeated or invented phrases, often called hallucinations.
- Filler words. Some tools remove "um" and "uh" and some keep them. Be consistent.
A correction pass that works
Correcting in one disciplined pass is faster than fixing things as you notice them.
- Build a glossary first. List the terms, names, and acronyms the lecture uses. Take them from your slides and notes. Some cloud services accept this list as custom vocabulary, which improves the draft.
- Watch while reading. Play the video at normal speed with the text visible. Reading alone misses cases where the text is plausible but does not match what was said.
- Fix the high-risk items first. Search for each glossary term and for digits. Correct them everywhere.
- Read for sense. Fix homophones and broken sentences.
- Decide on fillers and false starts. Verbatim transcripts keep them. Captions usually do not, because they hurt reading speed. Choose one rule and apply it throughout.
- Do a final consistency check. Capitalization, spelling variants, and number style should be uniform.
You can automate step 3 with a replacement table. This script applies a glossary of known mistakes to an SRT file. It changes only text lines and leaves indexes and timestamps alone, so the timing stays intact.
import re
import sys
# Map of wrong text to correct text. Extend this for your lecture.
FIXES = {
"cooper nettys": "Kubernetes",
"engine x": "NGINX",
"sequel": "SQL",
}
TIMING = re.compile(r"^\d{2}:\d{2}:\d{2},\d{3} --> \d{2}:\d{2}:\d{2},\d{3}")
def fix_line(line: str) -> str:
for wrong, right in FIXES.items():
line = re.sub(re.escape(wrong), right, line, flags=re.IGNORECASE)
return line
def main(src: str, dst: str) -> None:
with open(src, encoding="utf-8") as f:
lines = f.read().split("\n")
out = []
for line in lines:
if line.strip().isdigit() or TIMING.match(line) or not line.strip():
out.append(line)
else:
out.append(fix_line(line))
with open(dst, "w", encoding="utf-8") as f:
f.write("\n".join(out))
if __name__ == "__main__":
main(sys.argv[1], sys.argv[2])Run it with python fix_srt.py transcript/lecture_audio.srt lecture_fixed.srt.
Be careful with blind replacement. The pair "sequel": "SQL" would also change a lecture sentence about a movie sequel. Review the changes in a diff or search for each term afterward.
Edge cases
- Multiple speakers. If a guest speaks, decide whether captions show speaker labels. Most tools do not identify speakers reliably, so add labels by hand where they matter.
- Accents and audio quality. Noise, echo, and clipped audio reduce accuracy. Poor input is cheaper to fix than poor output: clean the audio before transcribing if you can.
- Non-speech sound. Meaningful sounds, such as a demonstration beep, matter to viewers who cannot hear. Add a short description in brackets if it carries information, for example
[alert sound]. - Code and commands read aloud. A speaker saying "dash dash verbose" may be transcribed as words. Write the literal text,
--verbose, if that is what the screen shows. - Language mixing. If the lecturer switches language mid-sentence, a single-language setting will garble the other language. Correct those parts by hand.
- Silence. Long silent stretches can produce phantom text. Delete any cue with no matching speech.
Checking timing while you correct
Fix text without changing timestamps where you can. If you must change the length of a cue, keep it aligned with the speech. Section lengths and cue boundaries matter in the next chapter, but a quick check now saves rework:
- Each cue starts when the speech starts, not noticeably before or after.
- No cue overlaps the next one.
- A cue is not left on screen long after the speech ends.
Spot-check at the beginning, middle, and end of the video. A drift that grows over time means the transcript came from a different version of the video than the one you are captioning. Regenerate from the right file.
Summary
Transcribe the final cut so timestamps match. Use an automatic draft, then correct it with a glossary, a watch-and-read pass, and consistent rules for fillers. Check numbers and technical terms most carefully, and review automated replacements before trusting them.
Exercise
You transcribed your raw lecture, then removed a 10-second mistake at 2:00. Your captions after 2:00 now appear 10 seconds late. Why did this happen, and what are two ways to fix it?
Show answer
The transcript timestamps came from the raw file, and the cut moved everything after 2:00 earlier by 10 seconds. Fix it either by regenerating the transcript from the cut video, or by shifting every cue after the cut point earlier by 10 seconds (and removing any cues that fell inside the deleted section). Regenerating is safer, because it also handles any other timing changes.
Exercise
A draft transcript contains the line "Set the timeout to fifty milliseconds", but your slide says 15 ms. What should you do, and why does this class of error matter more than a typo?
Show answer
Listen to the audio at that point to see what was actually said, then correct the text to match the speech, and flag the slide if the speaker was wrong. Number errors matter more than typos because they change the meaning, and a viewer may act on the wrong value.