short · 3 min
Speech-to-text
Turning recorded speech into a transcript, with a model that writes text the way an LLM does, and can make things up the same way.
updated 29 Sept 2026
Why would a speech recognizer ever write down words nobody said?
It's listening and writing down what's there, isn't it? Yet Whisper, the open model OpenAI described in 2022, lists among its failures getting stuck repeating itself, dropping the first or last few words of a stretch, and sometimes writing a transcript that has nothing to do with the audio at all. To see how that's even possible, let's follow a 90-second voice memo through it.
From sound to a picture to text
First the audio is resampled to 16,000 samples a second and cut into 30-second windows, the length the model was trained on.
Each window becomes a log-Mel spectrogram: a grid of how much energy there is in each of 80 pitch bands, for each 25-millisecond slice of time. A picture of the sound, basically, and that's what the model reads.
Then it's a transformer with two halves. An encoder reads the whole spectrogram. A decoder writes the output one token at a time, the same way a chat model writes (next-token prediction), except it keeps looking back at the encoded audio.
The first tokens it writes aren't words. They're instructions to itself: which language is being spoken, whether to transcribe or translate into English, and whether to add timestamps. If there's no speech in the window, it writes a special "no speech" token instead.
For our 90-second memo, it transcribes the first window, moves forward by the timestamps it predicted, and goes again until it reaches the end.
So there's the answer to the opening question. The decoder is a language model. It predicts likely next words given the audio, and likely words can drift away from what was actually said. That's the same hallucination text models have. Whisper's decoding fights some of it by starting at temperature 0 and raising it in small steps when the output looks repetitive or the model seems unsure.
Why it copes with audio it never heard
Whisper's big idea was the training data: 680,000 hours of audio from the internet, with transcripts that already existed there. Noisy labels, but a huge amount. On speech datasets it never trained on, it made 55.2% fewer errors on average than a model trained on one clean dataset.
The same data explains its weak spot. About 438,000 of those hours were English, and most other languages had under 1,000. Errors roughly halve for every 16 times more hours in a language. So "supports 98 languages" doesn't mean good at all 98.
Using it through an API
As of 2026-09, OpenAI recommends a newer model, gpt-transcribe, for
ordinary transcription, and keeps whisper-1 for when you need word
timestamps. Uploads max out at 25 MB, so long recordings get split (at
pauses, since cutting mid-sentence loses context). A finished file can
stream partial text back while it's processed. Audio still
coming in from a microphone or a call goes through a separate realtime
path, which is where voice agents come in.
For product names and jargon, you can pass a prompt and a list of
expected keywords. Careful with the keywords, though. They make the model more likely to write those words, including when
nobody said them. And whisper-1 takes only a 224-token prompt, so a long
glossary works better as a cleanup pass with a text model afterwards.
How do you know it's good?
The standard score is word error rate, WER: how many words differ from a reference transcript. But it counts every difference, including harmless ones: "ten percent" against "10%" is an error. The Whisper paper runs both texts through a normalizer (case, punctuation, numbers) before scoring, and you'd want to do the same, or you'll end up measuring formatting. And no benchmark knows your accents, microphones and product names; that takes a few of your own recordings.
Further reading
- Robust Speech Recognition via Large-Scale Weak Supervision, Radford et al. (OpenAI), 2022. The Whisper paper. The limitations section is where the made-up transcripts are described.
- Speech to text (OpenAI API docs), OpenAI. Current models, the file limit, streaming, speaker labels and how to handle jargon.