How does speech recognition work?
Speech recognition works by turning sound into numbers, using a trained model to estimate which sounds or word pieces those numbers most likely represent, and then searching for the sequence of words that best fits both the sound and the way language usually goes. Older systems did this with separate acoustic, pronunciation and language models; most modern ones use a single neural network trained on large amounts of transcribed speech. A final step adds punctuation, capitals and number formatting.
By Evin JohnPublished 6 min read
Step 1: from air pressure to numbers
A microphone turns changes in air pressure into a voltage, and the computer samples that voltage thousands of times per second. Speech systems commonly work at 16,000 samples per second, which keeps the frequencies that matter for understanding speech. Raw samples are too detailed and too noisy to use directly, so the audio is cut into short overlapping slices, often about 25 milliseconds long and taken every 10 milliseconds.
Each slice is converted into a frequency profile, then squeezed onto the mel scale, which spaces frequencies roughly the way human hearing does. Stack those profiles side by side and you get a log-mel spectrogram: a picture with time running left to right, pitch running bottom to top, and brightness showing loudness. Vowels show up as bands, consonants like s and f as fuzzy high-frequency patches, and pauses as dark gaps. This picture is what the model actually reads.
Step 2: the acoustic model guesses what it hears
The acoustic model looks at the spectrogram and, for each moment, estimates how likely each possible unit of speech is. In older systems the units were phonemes, the distinct sounds of a language, and the model was a statistical one built on hidden Markov models. Today it is a deep neural network, and the units are often characters or word pieces (fragments like "trans" and "cribe") rather than phonemes, so the model can spell words it has rarely seen.
| Design | How it produces text | Typical strength |
|---|---|---|
| CTC (connectionist temporal classification) | Predicts a symbol or a blank for every frame, then collapses repeats and blanks | Simple and fast; works well for streaming |
| Transducer (RNN-T and variants) | Predicts the next symbol using both the audio and the text produced so far | Good for live use on devices, where text must appear as people speak |
| Attention encoder-decoder | An encoder reads the whole stretch of audio; a decoder writes text while attending to it | Strong accuracy on recorded audio; Whisper is a well-known example |
Many current models mix these ideas, for example an encoder trained with both CTC and a decoder. The difference matters in practice: models that need a whole chunk of audio before writing tend to be accurate but feel slower live, which is the trade-off described in what is real-time transcription.
Step 3: language knowledge picks between near-misses
Sound alone is ambiguous. "Recognize speech" and "wreck a nice beach" can sound almost the same. The older approach used a separate language model, a table of which words tend to follow which, plus a pronunciation dictionary linking words to sounds. Modern end-to-end models learn much of this from their training text, and some systems still add a separate language model or a list of custom words, such as product names, to steer the result.
Fictional example
- Audio
- A speaker says a short sentence at the end of a sales call.
- Candidate A
- we'll send the quote by four
- Candidate B
- we'll send the coat by four
- Candidate C
- wheel sent the quote buy for
- Result
- The sounds fit all three about equally. Beam search keeps the best few partial guesses as it goes, and language knowledge ranks A highest because "send the quote" is common business English. In a clothing store's call, B might win instead.
Step 4: formatting the words
Raw model output often looks like "meet on march third at two thirty". A post-processing step called inverse text normalization turns it into "Meet on March 3 at 2:30." Punctuation and capitals are added by the model itself or by a small separate model. If the system separates speakers, that is a different task, speaker diarization, run alongside recognition.
How the model learns
A speech model is trained on audio paired with its correct transcript. During training it predicts text, compares it with the reference, and adjusts millions of internal weights to make the right answer more likely next time. The variety of the training audio decides what the model handles well: accents, microphones, background noise, subject areas and languages it heard often. A model trained mostly on read audiobooks will do worse on a noisy conference room than one trained on real calls.
Why it still makes mistakes
- Overlap: two people talking at once produce a spectrogram that is neither voice.
- Distance and echo: a laptop microphone across a room picks up the room as much as the speaker.
- Rare words: surnames, product codes and new jargon may never have appeared in training text.
- Accents and dialects: accuracy drops for speech the model heard little of.
- Wrong language setting: a model told to expect English will force Spanish speech into English-looking words.
Accuracy is reported as word error rate. Because it changes so much with the audio, test any engine on recordings like your own before trusting a published number.
Misconceptions
- "It understands what you mean." It predicts likely text. Understanding, such as summarizing or answering, is a separate language model's job.
- "It listens for words one at a time." It works on continuous frames and context; word boundaries are a result, not an input.
- "Bigger is always better." Larger models are often more accurate but slower and heavier, which matters on a laptop and in live use.
- "On-device means worse." Small local models trade some accuracy for privacy and speed; on clear audio the gap can be modest, though it depends on the model.
Speech recognition inside Natively
Natively, the meeting and interview assistant that publishes this explainer, lets you choose which recognizer to use rather than shipping only one. It can stream audio to a cloud provider with your own key, to the hosted Natively API, or to a model on your computer, such as Whisper, Distil-Whisper, Parakeet or Moonshine, and Apple Speech on recent macOS. It feeds your microphone and your computer's audio to the engine as two separate channels, which avoids some of the overlap problems above. Whichever you choose, the words then go to the language model you configured for notes and answers. More on the wider idea is in what does transcribe mean.
Questions people ask
How does speech recognition work?
It converts audio into a spectrogram, uses a trained neural network to estimate which characters or word pieces each moment of sound represents, searches for the most likely text, then formats numbers and punctuation.
What is an acoustic model?
The part of a speech recognizer that maps sound features to speech units such as phonemes, characters or word pieces. In modern end-to-end systems it is part of one neural network.
Why does speech recognition make mistakes?
Overlapping voices, distant microphones, echo, rare names, accents the model saw little of, and the wrong language setting are the usual causes.
Does speech recognition run on the device or in the cloud?
Both exist. Cloud engines send audio to a provider; on-device models such as Whisper or Parakeet run locally, usually trading some accuracy or speed for keeping audio on the computer.
Where to go next
Natively captures the call audio on your own computer, so no bot joins the meeting. Notes, recaps and answers come from the transcript.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
