Topic 5 of 5 · 5 min read
Measuring transcript and speech output quality
Goal: Compute and interpret word error rate on a small labeled sample and find the transcription errors that matter most for the product.
Measure a speech system on your own labeled audio with word error rate (WER), then read the individual errors, because the average hides which mistakes hurt. One wrong digit in an amount costs more than ten wrong filler words.
Check yourself · 1 of 3
The reference is "call Dana back now" (4 words) and the output is "call Donna back". What is the WER?
How WER works
WER compares a reference transcript (typed by a human) with the model's output. Count substitutions (S), deletions (D) and insertions (I) against N reference words:
WER = (S + D + I) / N
Reference: "pay forty dollars to Dana" (5 words). Output: "pay four dollars to Dana". One substitution, so WER is 1/5 = 20 percent. It looks small, and the amount is wrong by a factor of ten.
How to measure properly
- Collect 50 to 100 clips of real audio from your users: the noise, the accents, the phones.
- Write reference transcripts carefully, with names and numbers spelled your way.
- Normalize both texts before scoring: lowercase, strip punctuation, expand "10" and "ten" the same way. Without normalization "Dr." versus "doctor" counts as an error.
- Score, then sort the errors into groups: names, numbers, product terms, filler. Compute accuracy on names and numbers separately.
- Test silence and music. Some models invent text such as "thanks for watching" on quiet or musical audio. Feed them such clips and count what appears.
- Check speech output by ear. For TTS there is no single number. Listen for mispronounced names, wrong stress, clipped endings and odd pauses.
Before and after
Before: "The vendor claims 4 percent WER, so we ship." After: on 80 of our calls the WER is 9 percent, 31 of 40 account numbers are fully right, and two silent clips returned invented sentences. We add a vocabulary hint, a silence filter and a read-back of numbers.
What goes wrong
- Different normalization between two models makes the comparison unfair.
- Tiny samples. Ten clips can swing by several points; do not rank models on them.
- Lab audio. WER on clean read speech says little about a noisy phone line.
- Skipping the human read. A good score and an invented sentence can sit in the same transcript.
Examples
Reading a small error table
| Clip | Reference | Output | Error type |
|---|---|---|---|
| 1 | pay forty dollars | pay four dollars | number |
| 2 | call Dana back | call Donna back | name |
| 3 | (silence) | thanks for watching | invented text |
The overall WER may look fine, but all three rows would harm a payment or call-back product. The fix list is a number read-back, a name hint and a silence filter.
Key points
- WER is substitutions plus deletions plus insertions divided by the number of reference words.
- Normalize reference and output the same way before scoring, or formatting differences count as errors.
- Sort errors into names, numbers and product terms, and report accuracy on those separately from the overall score.
- Test silence and music clips, because some models write text where nobody spoke.
- Judge synthesized speech by listening for mispronounced names, stress and odd pauses.
Common mistakes
- Trusting a vendor WER measured on clean read speech instead of scoring your own recordings.
- Scoring without normalizing case, punctuation and number format on both sides.
- Reporting one overall percentage while names and amounts are the errors that cost money.
- Never testing silence or music, so invented text reaches users.
Check yourself · 2 of 3
Why normalize text before computing WER?
Check yourself · 3 of 3
A clip with only music returns "thanks for watching and see you next time". What is this?
Practice items, not counted towards your mastery.
Start here
- Speech to text guide (OpenAI) (opens in a new tab)DocsFree
Transcription endpoints, file limits, the prompt parameter and timestamps, from one vendor.
- Text to speech guide (OpenAI API) (opens in a new tab)DocsFree
Stock voices, streaming audio output, style instructions and the disclosure requirement.
- Hugging Face Audio Course (opens in a new tab)CourseFree
Free course on audio data, speech recognition and synthesis, with word error rate explained.
More for this topic
- Robust Speech Recognition via Large-Scale Weak Supervision (Whisper paper) (opens in a new tab)PaperFree
How Whisper was trained and evaluated, including its limits on noisy and low-resource speech.
- Open ASR Leaderboard (Hugging Face) (opens in a new tab)ToolFree
Side-by-side word error rate and speed of open and hosted recognition models.