Voice AI Day is baaaaack! 🎙️ 11 cities, 10 Dec
    Video4:31by Voice AI Space

    How Speech-to-Text Works (2026)

    How speech-to-text turns sound into words: spectrograms, the encoder, and three decoding methods (CTC, encoder-decoder, transducer), live vs recorded.

    Part of Voice AI Explained. See every episode, in learning order, in How Voice AI Works: A Complete Guide.

    Summary

    From Sound Waves to Numbers and Pictures

    A microphone does not hear words; it only measures air pressure moving up and down. To process this, a device measures the pressure thousands of times per second (often 16,000 times a second for speech-to-text), resulting in 16,000 numbers for every second of speech.

    To make these numbers easier to read, the audio is sliced into tiny, overlapping segments of about 25 milliseconds. For each slice, the energy at each pitch is measured. Aligning these slices chronologically creates a spectrogram, which is a visual representation of sound where time runs horizontally, pitch runs vertically, and brightness represents loudness. Many models use a Mel spectrogram, which spaces pitches to mimic human hearing.

    The Encoder

    A neural network called the encoder analyzes the spectrogram. It examines each moment in context with the surrounding sound and translates it into numbers that describe the sounds heard and how they fit together. Encoders learn these patterns by training on massive datasets of speech paired with written transcripts.

    Three Ways to Write the Words

    Because the encoder only describes what it hears without writing actual words, another process must translate those descriptions into text. There are three primary methods to achieve this:

    • CTC (Connectionist Temporal Classification): The model guesses a letter, word fragment, or blank space at every moment, then merges duplicates and removes blanks. While fast and highly suitable for live applications, it makes guesses independently without considering previously written words.
    • Encoder-Decoder: A decoder network writes the text sequentially, one piece at a time. At each step, it uses attention to look back at both the audio and the words it has already written. This method excels at punctuation, spelling, and context, but because it processes audio in larger chunks (up to 30 seconds), it is typically better suited for recordings than live calls.
    • Transducer: This approach combines the previous two methods. It processes audio moment-by-moment like CTC, but ensures each new word depends on the text written so far, like a decoder. This allows it to transcribe speech in real time while still utilizing context.

    Streaming and Live Transcripts

    For live applications like voice agents, speech-to-text systems generate partial (or interim) results: early guesses that can change as more audio is processed. Once a segment of text is finalized, it is marked as final. Voice agents can use partial results to prepare but should only execute actions based on final text.

    Full transcript

    You say, "Book a table for two at eight." Half a second later, the words appear on screen. But a microphone doesn't hear words. It only measures air moving. So how does a machine turn that into text? Today, how speech-to-text works, step by step, from sound waves to words.

    Voice AI Space makes honest videos to help developers and curious people upskill in voice AI.

    Your voice is air pressure going up and down, very fast. Your device measures that pressure thousands of times a second. For speech-to-text, often 16,000 times. Classic phone calls use just 8,000, as we saw in episode 7. So one second of speech is 16,000 numbers. Nothing in those numbers says, "This is the word table." The first job is to turn them into something easier to read.

    The audio is cut into tiny, overlapping slices. About 25 milliseconds each, one every 10 milliseconds. For each slice, we measure how much energy there is at each pitch, from low to high. Put the slices side by side, and you get a picture. Time goes left to right, pitch goes bottom to top, and brightness shows loudness. It's called a spectrogram. Many models, including OpenAI's Whisper, use a version that spaces pitches the way human hearing does, called a Mel spectrogram. Every sound leaves its own pattern. An S is a bright smear up high. A vowel shows steady stripes.

    Next, a neural network called the encoder reads that picture. It looks at each moment together with the sound around it, and turns it into numbers that describe what was heard—which sounds and how they fit together. It learned this from huge amounts of speech, each clip paired with a written transcript. The first Whisper models learned from 680,000 hours. But the encoder doesn't write words. Something else has to turn what it heard into text. There are three main ways.

    The first is called CTC. At every moment, the model guesses a letter, or a piece of a word, or nothing here. Then it merges repeats and drops the blanks. H, H, blank, E, L, L, blank, L, O becomes "hello". It's fast and works well live, but each guess is made mostly on its own, without looking at the words it already wrote.

    The second way adds a decoder—a second network that writes the text one piece at a time, the way a chatbot writes a reply. At each step, it looks back over the audio and at the words it already wrote. This is called attention. Whisper works this way. It's good with punctuation, spelling, and context, but it's built for chunks of audio. Whisper reads up to 30 seconds at a time, so out of the box, it's more at home with recordings than with live calls.

    The third way, the transducer, mixes the two. It moves through the audio moment by moment, like CTC, but each new piece of text also depends on the text so far, like a decoder. So it can write as you speak and still use context. Many streaming systems use it. Nvidia's open models show both. Parakeet comes in CTC and transducer versions, and its streaming models use a transducer.

    In a voice agent, you can't wait until the end of the sentence. So streaming speech-to-text sends early guesses while you're still talking. These are called partial or interim results. They can change as more audio arrives. "for" might become "four" once it hears "people". When a part is settled, it's marked final. Your agent can get ready using partials, but should act on final text. And the time from your last word to that final text counts in the latency budget from episode 8.

    To recap, sound becomes numbers, the numbers become a picture, and the encoder describes what it hears. Then one of CTC, a decoder, or a transducer turns that into words. Streaming models guess early and correct themselves as you speak.

    Next time, why speech-to-text still gets things wrong, like names, numbers, and noisy rooms, and how to fix it. If we got something wrong, tell us. Corrections get pinned. And you'll find voice AI products sorted by role in the Voice AI Space library.