Skip to content
KinPilot™Learn & Explore
Menu

Grades 6–8 · Computing

How does a computer turn speech into text?

Speech recognition converts recorded speech into an estimated written transcript. A microphone first turns changing air pressure into an electrical signal. The computer records measurements of that signal at closely spaced times. These digital samples describe sound; they do not already contain written letters or spaces between words.

D49 visual explanationSampled speech feeds a learned recognition model that combines sound patterns with context and estimates candidate word sequences. Homophones weather and whether receive invented ranking points 60 and 40 for the supplied context. The toy top candidate is weather. The total is 100 points for easy comparison, not a calibrated probability of correctness. No audio is analyzed here. Noise, accents, names and unfamiliar vocabulary can affect actual results.Speech recognition estimates words from sound patternsMicrophone → sampled sound → learned recognition modelSound samplesCompare patternswith contextCandidate words+ rankingContext: The ___ is sunny.weather: 60 pointswhether: 40 pointsToy top candidate: “weather”Invented ranking points are not percent-correct guarantees.

In the diagramSpeech recognition estimates words from sound patternsMicrophone → sampled sound → learned recognition modelSound samplesCompare patternswith contextCandidate words+ rankingContext: The ___ is sunny.weather: 60 pointswhether: 40 pointsToy top candidate: “weather”Invented ranking points are not percent-correct guarantees.

Sound measurements and sentence context contribute to candidate words. The invented ranking favors “weather” in “The weather is sunny,” while leaving room for recognition error.

A recognition model has learned relationships between sound patterns and text from training data. It processes the sound over time and compares possible word sequences. Modern systems can learn several parts of this process together, rather than following a single fixed list of separate sound-to-letter rules.

Context helps because different words can sound alike. “Weather” and “whether” are homophones: they can have the same pronunciation. In “The weather is sunny,” the surrounding words support one spelling. In “I wonder whether it will rain,” they support the other. The illustration gives the two candidates invented ranking points to show this change. The points are not measurements from a real recognizer.

An output is still an estimate. Background noise, overlapping voices, unfamiliar names, accents and the system’s training can affect recognition. Some systems return alternatives or a confidence estimate, and a developing transcript may change as more speech arrives. A high ranking does not guarantee that the chosen words match what was said. Producing text is also a different task from establishing the meaning or truth of the speech.

About this explanation

Starting knowledge: Understand that microphones turn sound into electrical signals and digital information can represent measurements.

Sources

  • Google Cloud — Speech-to-Text overview
  • Google Cloud — Improve transcription results with model adaptation
  • Microsoft — SpeechRecognitionResult.RawConfidence
← Grades 6–8 topics