Last month I paid 96 dollars for transcripts I could not use because the speaker labels were junk. That is on me. I trusted the marketing page. Here is the test I run now before I pay for any transcription tool. It takes about an hour, costs a few cents, and gives you numbers you can defend.
The goal is simple. Measure accuracy on clean vs messy audio. Check speaker labeling on a real two person clip. Make sure exports are actually useful in your workflow. No bench porn. Real files, real outputs.
What you will need
- Python 3.9 or newer
- ffmpeg installed and on PATH
- A transcription tool account with TXT and SRT or VTT exports
- jiwer Python package for word error rate
Step 1. Build a tiny but meaningful test set
Three short clips cover 80 percent of creator use cases.
- clean_1spk.wav, 60 to 90 seconds, one speaker, good mic, no noise
- convo_2spk.wav, 90 to 120 seconds, two speakers, light overlap, normal room
- noisy_1spk.wav, 60 seconds, one speaker, add background cafe noise at low volume
You can make these from a longer recording you already own. Here is a quick way to cut segments with ffmpeg once you pick timestamps.
Cut a clean one speaker segment from 00:10 to 01:40:
ffmpeg -ss 00:00:10 -i input_full.wav -t 00:01:30 -ac 1 -ar 16000 -c:a pcm_s16le clean_1spk.wav
Cut a two speaker segment from 05:00 to 07:00:
ffmpeg -ss 00:05:00 -i input_full.wav -t 00:02:00 -ac 1 -ar 16000 -c:a pcm_s16le convo_2spk.wav
Make a noisy clip by mixing in a noise bed. Grab a free loop from freesound.org or use pink noise.
Normalize both to avoid clipping, then mix the noise at about minus 20 dB relative to voice:
ffmpeg -i clean_1spk.wav -filter:a loudnorm=I=-16:LRA=11:TP=-1.5 norm_voice.wav
ffmpeg -i cafe_noise.wav -filter:a "volume=0.1" quiet_noise.wav
ffmpeg -i norm_voice.wav -i quiet_noise.wav -filter_complex amix=inputs=2:duration=shortest:dropout_transition=0 -c:a pcm_s16le noisy_1spk.wav
You now have three WAV files.
Step 2. Create reference transcripts
Type the ground truth for each file once. Be strict but not fussy.
Rules I use:
- Keep normal punctuation, periods and commas.
- Do not include filler like um or uh unless it is important to meaning.
- Expand numbers as spoken. Say twenty one, not 21, if that is how it was said.
- For the two speaker clip, label turns as Speaker 1 and Speaker 2 on separate lines.
Example reference for a 2 speaker clip:
Speaker 1: Thanks for joining. The goal today is to scope the caption workflow.
Speaker 2: Sounds good. I can own the export and QC steps.
Save these as clean_1spk.ref.txt, convo_2spk.ref.txt, noisy_1spk.ref.txt.
Step 3. Transcribe with the tool you want to test
Upload the three WAVs. Do not touch manual settings if you can avoid it. Let auto language and auto punctuation do their thing. Export:
- Plain text transcript for each file
- SRT for each file
- If available, JSON with word timestamps
Name the outputs to match:
- clean_1spk.tool.txt
- clean_1spk.tool.srt ...and so on.
Record two numbers right now:
- Wall time to completion for each file, in seconds
- Credits or dollars used, if visible
Step 4. Compute word error rate with jiwer
WER is not perfect, but it is better than vibes. This script normalizes basic punctuation and case, then prints WER for each pair.
Create wer_eval.py:
import sys
from pathlib import Path
from jiwer import wer, transforms
norm = transforms.Compose([
transforms.ToLowerCase(),
transforms.Strip(),
transforms.RemoveMultipleSpaces(),
transforms.RemovePunctuation(),
])
def score(ref_path, hyp_path):
ref = Path(ref_path).read_text(encoding="utf-8")
hyp = Path(hyp_path).read_text(encoding="utf-8")
return wer(norm(ref), norm(hyp))
pairs = [
("clean_1spk.ref.txt", "clean_1spk.tool.txt"),
("convo_2spk.ref.txt", "convo_2spk.tool.txt"),
("noisy_1spk.ref.txt", "noisy_1spk.tool.txt"),
]
for ref, hyp in pairs:
w = score(ref, hyp)
print(f"{hyp}: WER={w:.3f} Accuracy={(1-w)*100:.1f}%")
Run it:
python wer_eval.py
Target thresholds I use before I pay for anything:
- Clean one speaker, accuracy above 96 percent
- Two speaker normal room, above 92 percent
- Noisy one speaker, above 88 percent
Miss these by a lot and you will spend time editing.
Step 5. Check speaker labeling the cheap way
Most tools do not export clean diarization in text. You can still smoke test quality by aligning SRT cues with speaker turns from your reference.
Here is a quick and dirty check. Count the number of apparent speaker switches in the SRT by looking for leading names or line breaks. If the tool does not label at all, this will be zero. If it adds generic Speaker 1 labels, great. If it guesses names, even better, but do not trust it until you verify.
This script inspects an SRT and prints any lines that look like labeled turns. It also flags back to back cues with the same label to catch runs where it forgot to switch.
Create diar_check.py:
import re
import sys
label_re = re.compile(r"^(speaker\s*\d+|spk\s*\d+|[A-Z][a-zA-Z]+):")
def parse_srt(path):
with open(path, encoding="utf-8") as f:
block = []
for line in f:
if line.strip() == "":
if block:
yield block
block = []
else:
block.append(line.rstrip("\n"))
if block:
yield block
def extract_text(block):
# skip index and timestamp lines
return " ".join([l for l in block if not l.isdigit() and "-->" not in l])
def labels_in_srt(path):
labels = []
for block in parse_srt(path):
text = extract_text(block)
m = label_re.match(text.strip())
if m:
labels.append(m.group(1).lower())
else:
labels.append(None)
return labels
for srt in sys.argv[1:]:
labels = labels_in_srt(srt)
labeled = sum(1 for x in labels if x)
print(f"{srt}: {labeled}/{len(labels)} cues labeled")
switches = sum(1 for a, b in zip(labels, labels[1:]) if a != b)
print(f"{srt}: {switches} apparent switches")
Run it:
python diar_check.py convo_2spk.tool.srt
What I look for:
- At least some labeled cues on the two speaker file
- Switch count roughly in line with the number of turns in your reference
- No long runs misattributed to a single speaker if the audio clearly alternates
If the tool cannot do speaker labels at all, fine, factor the manual fix into your process and budget.
Step 6. Sanity check SRT timing
Bad SRT ruins editing and captions. Two simple guards catch most issues.
- Timestamps should be strictly increasing
- No cue should be longer than 6 seconds for normal speech
Create srt_guard.py:
import re
import sys
from datetime import timedelta
ts_re = re.compile(r"(\d+):(\d+):(\d+),(\d+)\s*-->\s*(\d+):(\d+):(\d+),(\d+)")
def to_ms(h, m, s, ms):
return int(h)*3600000 + int(m)*60000 + int(s)*1000 + int(ms)
def check(path):
last_end = -1
bad = 0
long = 0
with open(path, encoding="utf-8") as f:
for line in f:
m = ts_re.search(line)
if m:
sh, sm, ss, sms, eh, em, es, ems = m.groups()
start = to_ms(sh, sm, ss, sms)
end = to_ms(eh, em, es, ems)
if start < last_end:
bad += 1
if end - start > 6000:
long += 1
last_end = end
print(f"{path}: {bad} non-monotonic, {long} long cues")
Run it:
python srt_guard.py clean_1spk.tool.srt convo_2spk.tool.srt noisy_1spk.tool.srt
If you see many non monotonic cues, the export is broken. If most cues are longer than 6 seconds, the captions will look sluggish and fail QC on some platforms.
Step 7. Cost and speed math you can trust
You wrote down wall time and cost in step 3. Turn that into two ratios.
- Real time factor, RTF, which is wall seconds divided by audio seconds. Under 0.5 is fast for async work. Over 1.0 is slow for same day batch jobs.
- Cost per audio hour. Dollars divided by total audio hours. Under 2 dollars per hour is cheap. 2 to 6 is normal for higher quality engines. Over 10 is premium.
Example:
- Total audio, 4 minutes, 240 seconds
- Total wall time, 70 seconds, RTF 0.29
- Credits used, 0.12 dollars, cost per hour 1.80
Write these in a plain text note next to the WER and diar results. Future you will be grateful.
Step 8. Pass or fail thresholds I actually use
I keep this boring and binary.
Pass if all of these are true:
- Clean one speaker accuracy above 96 percent
- Two speaker accuracy above 92 percent
- Noisy one speaker accuracy above 88 percent
- SRT guard shows zero non monotonic cues
- Diar check shows reasonable switches for the two speaker file
- RTF under 0.75 on a 1 to 3 minute file
- Cost per hour at or below what your budget allows
Fail on any two of these and move on. Life is short.
Optional. Quick cleanup script for SRT to plain text
Many tools add line breaks and timing noise to TXT exports. If you only have SRT, strip it to text like this.
Create srt_to_txt.py:
import sys
def srt_to_txt(path):
with open(path, encoding="utf-8") as f:
out = []
for line in f:
s = line.strip()
if not s:
continue
if s.isdigit():
continue
if "-->" in s:
continue
out.append(s)
return " ".join(out)
for srt in sys.argv[1:]:
text = srt_to_txt(srt)
out_path = srt.rsplit(".", 1)[0] + ".stripped.txt"
with open(out_path, "w", encoding="utf-8") as o:
o.write(text)
print(f"Wrote {out_path}")
Use it when the tool gates TXT behind a paywall, or when the TXT is missing punctuation.
What this catches that marketing will not
- Accuracy falls off a cliff with even light noise, you will see it on the noisy clip
- Speaker labels are present on demos but vanish on your audio, diar check will out it
- SRT timestamps slip out of order on longer files, the guard script will complain
- A fast headline hides slow wall time on real uploads, your RTF will show it
- Cheap prices hide higher cost per hour due to billing units or rounding, your math will make it obvious
One last mistake I made so you do not have to
I once judged a tool on a 15 second clip. It was perfect. The same tool broke on a 2 minute file with a guest who spoke quickly. Always test with one to two minutes. That is enough to hit fast speech, name entities, and a couple of speaker turns.
If you run this and get numbers you like, great. If not, you only spent an hour to find out. That is cheaper than refactoring your whole caption workflow later.
Top comments (1)
Good protocol — two additions that changed our numbers. (1) WER weights every word equally, so a tool can score 95% and still mangle every product name in your show. Keep a short critical-term list (tool names, guest names, numerals) and report recall on that list separately; masking proper nouns before jiwer often turns a "fail" into a pass or vice versa and tells you which one is the real problem. (2) Your clips are 16 kHz mono, which is correct for Whisper but worth testing against the same clip at 44.1 kHz untouched, because some hosted tools resample differently and you want to know whether the accuracy loss is the model or your preprocessing. On the SRT guard, add characters-per-second (cap around 20) and 42 chars per line for platform QC.