Speech & Audio AI / Speech Tasks
Turning spoken audio into text.
Reviewed by Yuvaraj
Automatic speech recognition (ASR) turns spoken audio into written text. It sounds like a straightforward mapping, but it hides a genuinely hard structural problem: the input and the output do not line up. A three-second clip is thousands of feature frames long, the transcript is a handful of words, and nothing tells the model which frames produced which word. This lesson explains that alignment problem, how modern end-to-end models solve it, the word error rate metric used to measure them, and the conditions under which even strong systems still break.
Recognition is a sequence-to-sequence task where the two sequences have wildly different, variable lengths and no given correspondence:
So the model must simultaneously decide what was said and implicitly where each unit was said, without ever being told the segmentation. Older systems solved this with a pipeline of separate components (an acoustic model, a pronunciation dictionary, and a language model stitched together by a hidden Markov model). Modern systems learn the whole mapping end to end.
Ask about this lesson, or about anything in AI. Answers cite the lessons they draw on.
Finished this lesson?
Mark it complete to earn XP, keep your streak, and schedule a review.
Two ideas dominate, and modern systems often combine them:
Large modern ASR models (trained on very large, weakly supervised datasets spanning many languages and acoustic conditions) push word error rates on clean speech to within a few points of human transcribers, and are robust enough to work out of the box on everyday audio.
The standard metric is word error rate (WER): how many word-level edits are needed to turn the model's output into the reference transcript, normalized by the reference length. It counts three kinds of error, substitutions (, a wrong word), deletions (, a missed word), and insertions (, an added word), against , the number of words in the reference:
Worked example. Reference (5 words): "the cat sat on the". Model output: "the cat sat in". That is one substitution (on becomes in) and one deletion (the final the is missing), with no insertions:
Two things to note. WER can exceed 100% (many insertions on a short reference), and a low aggregate WER can still hide serious failures on specific words, which is why the number is a starting point, not the whole story.
Even strong systems degrade sharply under conditions that humans handle easily:
Why word error rate is not the whole picture
A transcript that gets 96% of words right can still be useless if the 4% it drops are the patient's medication, the amount in a contract, or a person's name. Evaluate ASR on the errors that matter for your use, named entities, numbers, negations, not only the headline WER.
Common mistakes