30% off your first 3 months

Get the deal

How speech recognition turns your voice into text

by DuckyHelperNov 12, 20264 min read
AI on your computer

TL;DR:

  • Speech recognition turns an audio signal into likely sounds, then into the most likely words given the context.

  • Context is what separates "recognise speech" from "wreck a nice beach", which sound almost the same.

  • Noise, accents, fast speech and rare words lower accuracy, so a good tool shows what it heard.

You ask your computer, "How do I add up a column in a spreadsheet?" A moment later, those words exist as text it can act on. Between your voice and that text there is a chain of small steps, and knowing them helps you understand why it usually works and why it sometimes writes something odd.

The short answer

Sound is a pressure wave. A microphone turns it into a long list of numbers, thousands of measurements every second. Speech recognition is the process of turning that list into the words you said.

It does not match whole words to recordings. It works in layers: first which small sounds are present, then which words those sounds could spell, then which of the possible word strings makes sense as a sentence.

What happens step by step

  1. Record. The microphone samples the sound many thousands of times per second.

  2. Cut into short slices. The audio is divided into tiny windows, a few hundredths of a second each.

  3. Describe each slice. Each is turned into a summary of which frequencies are loud, much like a picture of the sound.

  4. Guess the sounds. A trained model estimates which speech sounds each stretch resembles.

  5. Choose the words. Many word sequences fit the same sounds. The system picks the one that is both a good acoustic match and a likely sentence.

  6. Tidy up. Add capital letters and punctuation, and fix numbers and dates where it can.

Walk-through: a spoken question becoming text

You say, "How do I add up a column?" Two of those stretches are tricky. "Add up" could be heard as "Adopt" if the pause is short, and "a column" could be heard as "accolumn", which is not a word.

At the sounds stage, several candidates remain alive at once. At the word stage, each gets a score for how well it fits the sounds, and another for how plausible it is next to its neighbours. "How do I adopt a column" is grammatical but a strange thing to say. "How do I add up a column" is natural, and the computer was just asked about spreadsheets, so it wins.

The famous example of this is that "recognise speech" and "wreck a nice beach" have nearly identical sounds. Only the context, the rest of the sentence, picks the right one. That is also why very short commands are hard: with only one word, there is no context to lean on.

Why noise and accents cause trouble

  • Background noise mixes other signals into the wave, so the sound estimates get less certain.

  • Accents and dialects change the sounds in a word. Systems do best on speech similar to what they were trained on.

  • Rare words (names, jargon, product names) are unlikely under the language model, so common words win by mistake.

  • Speaking fast or mumbling blurs the boundaries between slices.

  • Several people at once is a hard problem even for humans in a loud room.

Tip: Speak in a full sentence rather than a single word, and say names and technical terms slowly. More words means more context for the system to use.

What it cannot do

It cannot read your intent, only your words. It does not know whether you meant "write" or "right" except through context, and it cannot tell whether a sentence is a question or a joke from the sound alone. It also has no memory of what is true: it transcribes "the earth is flat" as faithfully as any other sentence.

Privacy and control

Voice is personal, so when the microphone is on matters more than almost anything. Ask any voice tool when it listens, what happens to the audio, and how to stop it.

The safest design is a microphone that is open only while you press a key, with nothing captured in between.

Why it sometimes gets a word right on the second try

Some tools show their best guess while you are still talking and then revise it as more of the sentence arrives. That is the context effect in action: a word that was ambiguous at second one becomes obvious at second three. If you see words change on screen as you speak, it is not broken, it is correcting itself.

It also means the end of your sentence matters. Stopping mid-thought can leave the last word wrong, because the system never got the words that would have confirmed it.

Try it yourself

Use your phone's or computer's dictation and say the sentence "Recognise speech", then "Wreck a nice beach", clearly. Then say each one mumbled. You will see the system lean on what it expects, and sometimes pick the wrong one when the sound is unclear.

Or download DuckyHelper, press the key (fn on a Mac, Ctrl+Shift+Space on Windows and Linux) and ask a question out loud. It listens only while the pill is open and for that answer. You can try it for 10 minutes, no card.

Frequently asked questions

Does speech recognition learn my voice?

Some systems adapt to a speaker and some do not. Either way, ask the tool you use how it treats your audio.

Why does it get names wrong?

Names are rare, so the language side of the system prefers common words that sound similar. Spelling a name out can help.

Is it the same as understanding me?

No. Transcription only turns sound into words. Understanding what you want is a separate step.

Get started

DuckyHelper can
do more

It sees your screen and works in any app you use. Try it for 10 minutes, no card.

Get it for Mac, Windows or Linux

Share

Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in early access on Mac. Asking works on Mac, Windows and Linux.