Automatic speech recognition (ASR) turns a recording into a sequence of words. To transcribe a voice memo, start with a pretrained recognizer that supports the language being spoken. The first question is not how to train a bigger network; it is whether the transcript preserves the details the listener needs.
From a voice memo to a transcript
Consider someone leaving instructions at a reception desk. Split the memo into short stretches of audio in the format the recognizer expects. One common design represents the sound as a log-mel spectrogram: a grid showing how much energy falls in different frequency bands over time. The encoder turns this grid into features that capture speech sounds in context. A decoder uses those features and earlier text tokens to predict the next token until the transcript is complete. Tokens can be pieces of words; they are not the words we count for scoring below.
The original Whisper research paper describes an encoder-decoder system trained on audio paired with text. Training adjusts the weights to better predict the target tokens. Transcribing a new memo uses those learned weights without needing a transcript as input. For the learning step itself, see how neural networks learn from examples.
Score a transcript by hand: three edits in ten words
Here is an invented pair, not output from a model. The reference stands in for what a listener wrote down; the hypothesis stands in for the recognizer’s transcript. No audio was recorded or decoded for this example.
Reference: Please bring the blue folder to Maya before reception ends.
Hypothesis: Bring the green folder to Maya before reception ends today.
Use the same rules on both lines: lowercase the letters, remove periods, then split on whitespace. Do not rewrite names or convert number words to digits. Align the words in order, using the fewest edits that turn the reference into the hypothesis. Each edit costs one.
Deletion (D = 1): Drop “please”; the hypothesis starts with “bring.” Substitution (S = 1): Replace “blue” with “green.” Insertion (I = 1): Add “today” after “ends.” All other words match in order. The lines have the same length because the insertion offsets the deletion, not because all ten words are correct.
Word error rate (WER) = (S + D + I) / N = (1 + 1 + 1) / 10 = 30%. The denominator N is the number of words in the normalized reference, not the number of aligned positions or the length of the hypothesis. For a set of recordings, add the edit counts across recordings and divide by the total reference word count; otherwise a two-word memo counts as much as a long interview. Microsoft’s speech evaluation guide describes the three error types and how to inspect them against the audio.
What WER misses before you put a recognizer to work
Names and numbers: Dropping “please” and changing a folder color each cost one edit, but only one sends the courier looking for the wrong folder. Likewise, “Maya” versus “Mia” can identify a different person. “14” and “fourteen” can mean the same thing yet score differently without a number-normalization rule. Alongside WER, count how often the complete name, room number, or other essential field is correct. Ask the speaker to confirm uncertain details.
Language: Whitespace works for this English example, not for every writing system. For a language such as Japanese, specify a word segmenter or report character error rate. Do not rank systems using scores computed with different units or normalization rules.
Noise: A single score does not tell you whether the recognizer missed a quiet word or substituted a more familiar one. Before fine-tuning, transcribe held-out recordings with human references and speakers absent from training or tuning. Score quiet and noisy rooms separately, including overlapping voices if they occur at the desk. Listen to the mismatches: a better microphone might fix a problem that more training would not.
Speech recognition ends at the transcript. Routing a request based on that text is a separate decision: see how natural language processing uses text or compare speech, vision, and text applications of neural networks to choose a metric for the next step.
For the neural network foundations behind speech recognizers, the textbook below covers sequence modeling. As an Amazon Associate I earn from qualifying purchases. Deep Learning by Ian Goodfellow, Yoshua Bengio, and Aaron Courville (MIT Press hardcover, Amazon US).



