Skip to content
StackDecode
AI & ML Atlas
Artificial IntelligencealgorithmAnimated walkthrough

Speech Recognition

Converts spoken audio into text.

The idea

Audio is turned into a spectrogram (energy per frequency over time). An acoustic model maps short frames to speech sounds or characters, and a language model picks the most likely word sequence. End-to-end networks such as Whisper learn the whole pipeline from audio-text pairs.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Sample the audio and cut it into short overlapping frames.
  2. 2Compute spectrogram or mel features for each frame.
  3. 3Predict characters or sounds with a neural network.
  4. 4Decode with beam search, guided by a language model.
  5. 5Output text with punctuation.
1/5

Step by step

  1. 1Sample the audio and cut it into short overlapping frames.
  2. 2Compute spectrogram or mel features for each frame.
  3. 3Predict characters or sounds with a neural network.
  4. 4Decode with beam search, guided by a language model.
  5. 5Output text with punctuation.

Where it is used

Voice assistants, captions, dictation.

Watch out for

Accents, background noise and domain vocabulary reduce accuracy.

Related