stt

What Is Word Error Rate in Speech Recognition?

Learn how word error rate measures speech recognition accuracy, how to calculate WER, and why test audio and normalization matter.

By VoiceClub AI ·

AI assisted. Reviewed and approved by a human editor.

A microphone and transcript pages show how spoken words are compared with recognized text.
Credit: AI-generated editorial illustration for VoiceClub

Key points

  • WER compares a recognized transcript with a reference transcript.
  • The score divides substitutions, deletions, and insertions by the reference word count.
  • Lower WER means a closer word-level match, but WER can exceed 100%.
  • Normalization and representative test audio affect how useful a comparison is.
  • Character error rate can complement WER in multilingual evaluation.

Word error rate (WER) measures how closely a speech recognition transcript matches a reference transcript. It counts the substitutions, deletions, and insertions needed to align the two, divides that total by the number of words in the reference, and expresses the result as a percentage. Lower is better: a lower WER means a closer word-level match, although it does not necessarily mean the transcript preserves every important detail.

What does word error rate measure?

Speech recognition turns audio into text. To evaluate the result, you compare the recognized text, often called the hypothesis, with a reference transcript representing what was said. WER summarizes the word-level differences between those two versions.

A substitution occurs when a reference word is replaced by another word in the hypothesis. A deletion is a reference word that the hypothesis misses. An insertion is an extra word in the hypothesis that does not appear in the reference. The alignment matters because it determines the minimum edit count, rather than simply comparing words at fixed positions.

WER is useful because it puts those differences into one comparable number. A score of 10% represents one word-level edit for every ten reference words, on average. It is still an aggregate: it does not tell you which words were wrong or whether a particular error changed the meaning of a sentence.

Read Microsoft’s definitions of speech recognition errors

How do you calculate WER?

The formula is WER = (substitutions + deletions + insertions) Ă· reference word count Ă— 100. The reference word count is the denominator even when the hypothesis contains fewer or more words.

For a small worked example, compare these two transcripts from the Hugging Face audio course:

The reference contains six words. There is one substitution and one deletion, so the calculation is (1 + 1 + 0) Ă· 6 Ă— 100 = 33.3%, rounded to one decimal place. In other words, the minimum alignment requires two word edits across six reference words.

For longer transcripts, align the words before tallying the errors. A missing word can shift the positions of everything that follows, so comparing the first word to the first word, the second to the second, and so on may count unnecessary substitutions. The aim is to find the fewest edits that reconcile the sequences.

See the worked WER example in the Hugging Face audio course

Is a lower WER always better, and can it exceed 100%?

For the same reference, test material, and scoring rules, a lower WER means the hypothesis is closer to the reference at the word level. A WER of 0% means no word edits are needed under those rules. Comparing scores is less straightforward when the audio or the way transcripts are prepared differs.

WER can exceed 100% because insertions add to the error count without increasing the reference word count. Imagine the reference is simply “cat” and the hypothesis is “dog bird fish.” The minimum alignment requires one substitution and two insertions. That is three edits divided by one reference word, or 300%.

This does not mean that 300% of the reference words were wrong. It means the total number of word edits was three times the number of reference words. The distinction is especially worth remembering for short examples, where a few extra words can make the percentage rise sharply.

There is no single score in isolation that describes every transcription use case. Before treating a WER as a verdict, look at the material it covers, the comparison rules, and the errors behind the number.

Explore AWS guidance on evaluating speech recognition

Why does transcript normalization matter?

Normalization prepares the reference and hypothesis for comparison using consistent text rules. Depending on the evaluation, those rules might address capitalization, punctuation, or how numbers are written. For example, a transcript containing “twenty” and one containing “20” may describe the same spoken number but differ as text unless the scoring process handles the formats consistently.

The choice is not merely cosmetic. Speechmatics shows that normalization can materially change a WER score. If one system is scored with punctuation removed and another is scored without the same preparation, their reported results may reflect different rules as well as different recognition performance.

Choose rules that suit the question you are asking. A word-level comparison that ignores punctuation can help focus on recognized words, but it will not tell you whether the punctuation in a delivered transcript is useful. Similarly, normalizing number formats can avoid counting formatting differences as word errors, while obscuring which format the system actually produced.

A repeatable workflow therefore has two parts: prepare both texts consistently for the score, then inspect the output in the form people will use. The WER and the original transcript answer related but different questions.

Read Speechmatics’ guidance on accuracy benchmarking and normalization

How do you choose representative test audio?

Start by defining what the transcription is for. A score is most informative when the audio resembles the intended use case; a result from one kind of recording should not automatically be assumed to describe another. Speechmatics recommends representative test audio, while AWS recommends defining the use case before evaluating performance.

For example, a creator evaluating transcripts for recorded video should consider the kinds of recordings they actually want to process. A team working with multilingual material should consider the languages in that material. The point is not to assemble a universally difficult test, but to check performance on the audio that matters to the decision.

  1. Define the intended use: identify the audio and transcript task you want to evaluate.
  2. Choose test recordings that reflect that use, rather than relying on an unrelated sample.
  3. Prepare reference transcripts and apply a consistent normalization policy.
  4. Calculate WER for the resulting comparisons and review the actual errors.
  5. Keep the test material and scoring rules consistent when comparing systems or versions.

The last step makes the comparison easier to interpret. If both the system and the test set change, a different score alone cannot tell you which change explains the result. Retaining a consistent test gives you a clearer basis for comparison, while reviewing errors shows what the aggregate may conceal.

Explore transcript-based audio editing and rerecording

Read the audio and dubbing quality checklist

What are WER’s limitations, and when should you use CER?

WER counts word edits; it does not weight them by meaning. Consider the reference “take medication.” The hypotheses “skip medication” and “take medicine” each require one substitution, so both have a WER of 50%. Yet the first changes the instruction, while the second uses a different word with a similar meaning. A numerical tie does not make the practical consequences equivalent.

That is why error review matters alongside the score. Look at the words that are important to the intended task, not just the total. Names, instructions, and other meaningful details deserve inspection in context even when the overall WER looks low.

For multilingual evaluation, character error rate (CER) can complement WER. CER compares text at the character level, using character substitutions, deletions, and insertions rather than word edits. A research preprint notes limitations of WER for languages with complex morphology or unclear word boundaries and recommends considering CER in multilingual evaluation.

CER is a different view, not a replacement for reading the transcript. Report the metric and text-preparation rules clearly, and use the same approach when comparing results. Together, WER, CER where appropriate, and a review of consequential errors offer a fuller picture than a single percentage.

Read the multilingual evaluation research preprint

Learn more about pronunciation of names in text-to-speech audio

Sources

  1. https://huggingface.co/learn/audio-course/chapter5/evaluation

    The guide compares “the cat sat on the mat” with “the cat sit on the”: one substitution and one deletion across six reference words yield a WER of 33.3%. ([huggingface.co](https://huggingface.co/learn/audio-course/chapter5/evaluation)) (retrieved )

  2. https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-custom-speech-evaluate-data

    Microsoft defines insertions as extra words, deletions as missed words, and substitutions as words exchanged between the reference and hypothesis; it gives WER as their sum divided by the reference word count. ([learn.microsoft.com](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-custom-speech-evaluate-data)) (retrieved )

  3. https://docs.speechmatics.com/speech-to-text/accuracy-benchmarking

    The documentation says WER uses the minimum number of edits needed to match the hypothesis and reference, and recommends test audio representative of the intended use case. Its example also shows that transcript normalization can materially change the score. ([docs.speechmatics.com](https://docs.speechmatics.com/speech-to-text/accuracy-benchmarking)) (retrieved )

  4. https://aws.amazon.com/blogs/machine-learning/evaluating-an-automatic-speech-recognition-service/

    AWS recommends defining the transcription use case before evaluating performance and explains that lower WER indicates closer transcription accuracy. ([aws.amazon.com](https://aws.amazon.com/blogs/machine-learning/evaluating-an-automatic-speech-recognition-service/)) (retrieved )

  5. https://arxiv.org/abs/2410.07400

    The 2024 research preprint argues that WER has limitations for languages with complex morphology or unclear word boundaries and recommends considering character error rate in multilingual evaluation. ([arxiv.org](https://arxiv.org/abs/2410.07400)) (retrieved )

Explore VoiceClub services.