Artificial intelligence · Article
How Speech Recognition and Voice-to-Text AI Actually Works
Published:
In brief
Modern speech-to-text systems turn sound waves into a spectrogram image, then feed that image through a neural network that predicts text one token at a time. The same core method — pioneered by systems like Google's on-device recognizer and OpenAI's Whisper — now powers phone keyboards, smart speakers and accessibility tools, though researchers have also documented cases where these models invent words that were never spoken.
Every time a phone transcribes a voicemail, a smart speaker answers a spoken question, or a captioning app displays live subtitles, the same basic pipeline runs in the background: sound is converted into a visual pattern, and a neural network reads that pattern to guess the words. This explainer breaks down how that pipeline works, which systems are in wide use, and where the technology still makes mistakes.
From sound wave to spectrogram
Speech-to-text systems do not read raw audio directly. According to OpenAI's technical paper for its Whisper model, posted on arXiv, audio is first converted into a form a neural network can process efficiently before any transcription happens. Developer documentation for Whisper, published on GitHub by OpenAI, describes the model as 'a general-purpose speech recognition model' that handles multilingual transcription, translation into English, spoken-language identification and voice activity detection — all through one model rather than several separate stages.
The common technique across modern systems is to turn the audio into a mel spectrogram: a chart that shows which frequencies are present at each moment in the recording, scaled to roughly match how the human ear perceives pitch. That image-like representation, rather than the raw waveform, is what gets fed into the neural network.
Two different approaches: cloud-scale and on-device
Not all speech recognizers are built the same way, and the differences matter for how and where they can run.
OpenAI's Whisper, described in the arXiv paper 'Robust Speech Recognition via Large-Scale Weak Supervision,' was trained on 680,000 hours of multilingual and multitask audio collected from the internet, using an encoder-decoder transformer architecture similar to the one behind text-generation models such as GPT. The encoder processes the spectrogram; the decoder then predicts text tokens one at a time. The paper's authors report that the resulting models 'generalize well to standard benchmarks' in zero-shot settings, meaning without being fine-tuned on those specific benchmarks, and that 'when compared to humans, the models approach their accuracy and robustness.'
A different design goal shaped Google's on-device recognizer for its Gboard keyboard, described in a March 12, 2019 post on the Google Research blog. Instead of a large model running on remote servers, Google built what it called an 'all-neural, on-device speech recognizer' using a technique called an RNN transducer (RNN-T). The system compresses down to about 80 megabytes — versus almost 2 gigabytes for the search graph used by Google's traditional production models — by applying parameter quantization, a technique that the post says delivered roughly a fourfold reduction compared with the trained floating-point version (about 450 megabytes before compression). Because the whole model fits on the phone, Google said it 'offers the same accuracy as the traditional server-based models' while working 'even when you are offline,' avoiding the delay or interruptions that come from sending audio to a remote server.
| Feature | Cloud-scale model (e.g., Whisper) | On-device model (e.g., Google's Gboard recognizer) |
|---|---|---|
| Where it runs | Server/cloud (or downloaded large model) | Directly on the phone |
| Core architecture | Encoder-decoder transformer | RNN transducer (RNN-T) |
| Training data | 680,000 hours, multilingual, per OpenAI's paper | Not specified by Google in this post |
| Works offline | Not inherently | Yes, by design |
| Reported size | Multiple model sizes, largest 1.55 billion parameters, per GitHub | ~80MB after compression (450MB before), per Google |
Why this matters for accessibility
Speech recognition only works well for speech patterns it has seen enough of in training. Google's AI-for-social-good team launched Project Euphonia in a May 7, 2019 blog post, saying standard models are built from large volumes of what the post calls 'typical' speech and therefore perform poorly for people whose speech is altered by conditions the post names as stroke, ALS, multiple sclerosis, traumatic brain injury and Parkinson's; Team Gleason, an ALS advocacy group that has worked with the project, separately lists cerebral palsy among the conditions that can make this technology harder to use. The project asks volunteers with atypical speech to record phrases so researchers can build more inclusive models. A 2022 follow-up post on the same blog announced the project's research was expanding to four more languages — French, Hindi, Japanese and Spanish — in addition to its original English-language work, and said the broader effort had grown into Project Relate, described in a separate November 2021 Google blog post as an Android app, launched at the time in closed beta, designed to learn a user's individual speech patterns and build a personalized recognition model.
Where the technology still fails: 'hallucinations'
Automatic transcription is not simply slow or occasionally wrong — researchers have documented cases where models invent content that was never spoken, a failure mode generally called a hallucination. Reporting by Fortune, published October 26, 2024, cited researchers Allison Koenecke of Cornell University and Mona Sloane of the University of Virginia, who found that of the hallucinations they identified in Whisper transcripts, nearly 40% contained content the researchers classified as harmful or concerning, including fabricated violent statements and invented racial commentary that was not present in the original audio. The same report said Whisper-based transcription from a company called Nabla was already in use by more than 30,000 clinicians across 40 health systems, with roughly 7 million medical visits transcribed by that point, even though OpenAI had cautioned against using Whisper in 'high-risk domains' where transcription errors could affect decisions.
When compared to humans, the models approach their accuracy and robustness.
Where people encounter this daily
- Phone keyboards: on-device dictation (e.g., Gboard's offline recognizer) converts speech to typed text without sending audio to a server.
- Smart speakers and voice assistants: cloud-based or hybrid models interpret spoken commands.
- Accessibility tools: apps built on personalized models, such as Project Relate, help transcribe speech for people with atypical speech patterns.
- Medical and professional transcription: Whisper-based commercial products transcribe consultations and meetings, a use case now facing scrutiny over hallucination rates.
Questions
- What is the difference between speech recognition and voice-to-text?
- In practice the terms are used interchangeably: both describe software that converts spoken audio into written text, using the spectrogram-plus-neural-network pipeline described in OpenAI's and Google's technical publications.
- Does voice-to-text work without an internet connection?
- It can, if the recognizer is small enough to run entirely on the device. Google's Gboard recognizer, described in a March 2019 Google Research blog post, was built specifically to run offline at about 80MB, unlike earlier systems that depended on remote servers.
- Why does AI transcription sometimes produce text that was never said?
- This is called hallucination. Research cited by Fortune found that in OpenAI's Whisper model, researchers identified hallucinations where nearly 40% contained content classified as harmful, such as invented violent statements or racial commentary not present in the original audio.
- How much audio data is speech-to-text AI trained on?
- OpenAI's Whisper paper on arXiv states the model was trained on 680,000 hours of multilingual and multitask audio collected from the internet.
- How is speech recognition made more accessible for people with speech disabilities?
- Google's Project Euphonia, launched in a May 2019 blog post, collects speech samples from volunteers with atypical speech — caused by conditions the post names as stroke, ALS, multiple sclerosis, traumatic brain injury and Parkinson's, with the ALS group Team Gleason also citing cerebral palsy — to build more inclusive, personalized recognition models. A 2022 follow-up post said that work grew into Project Relate, which a separate November 2021 Google post describes as an Android app, launched at the time in closed beta, that learns a user's speech patterns to build a personalized model.
Sources
- arXiv — Robust Speech Recognition via Large-Scale Weak Supervision (Whisper paper)
- GitHub (OpenAI) — openai/whisper repository
- Google Research Blog — An All-Neural On-Device Speech Recognizer
- Google (blog.google) — How AI can improve products for people with impaired speech
- Google (blog.google) — How we build with and for people with disabilities
- Fortune — OpenAI's transcription tool has a hallucination problem, researchers say
- Team Gleason — Project Euphonia collaboration overview
This piece was prepared with artificial intelligence and passed an automated source check before publication. If you see an error, ask for a correction. Request a correction or reply · How we make this
Related

Artificial intelligenceArticle
Accenture Caps Employee Claude AI Spending at $29 a Month After $1,000 Bills
Accenture now centrally funds just $29 a month per employee for Anthropic's Claude, down from a system where some staff ran bills of $500 to $1,000 monthly. Employees who exceed the cap must get a specific project or team to cover the rest, and a Premium tier offers $250 of usage per week. The change took effect October 1, 2026, and was first reported by 404 Media.
Artificial intelligenceArticle
How Neural Networks and Deep Learning Let AI Systems Learn and Decide
Neural networks learn by repeatedly adjusting internal numerical values called weights, using a training method called backpropagation that corrects errors found when comparing predictions to known answers. Deep learning stacks many layers of these networks, which is why today's AI systems can recognize patterns and produce outputs without being given explicit, hand-written rules for every situation.

Artificial intelligenceArticle
How large language models actually work, and what they do and don't do
A large language model is a neural network trained to predict the next piece of text, called a token, given everything before it. It generates long answers by repeating that single prediction step thousands of times, not by looking up facts or genuinely "knowing" things the way humans do.
Artificial intelligenceArticle
How Machine Learning Models Are Trained, Optimized and Deployed
Machine learning models are built in three broad stages: training on labeled data using algorithms like gradient descent, optimization through hyperparameter tuning and validation against a holdout test set, and deployment into production as an API, batch job or edge-embedded service. Each stage is followed by continuous monitoring that can trigger retraining when performance drifts.