Start studying
Module 12 · Generative AI Module contents
Module 12  ·  Card 13 / 18beginner

Speech-to-Text

Speech-to-text transcribes spoken audio into written words.

Audio is first converted into a spectrogram, effectively an image of sound.

Encoder-decoder transformers such as Whisper then decode it into text.

They handle accents, background noise and many languages reasonably well.

Word error rate is the standard accuracy metric.

Learn in depth ↓
Module 12 · Generative AI · 18 concepts
In depth  /  15 lines

Speech-to-Text, in more detail

Speech-to-text transcribes spoken audio into written words.

Audio arrives as a waveform, thousands of amplitude samples per second.

That is first converted into a spectrogram, which shows frequency over time.

A spectrogram is effectively an image of sound, and models handle images well.

Classical systems needed separate acoustic, pronunciation and language models.

Modern systems are end to end, mapping audio straight to text.

Whisper is the well-known example, an encoder-decoder transformer trained on a vast weakly labelled set.

The encoder reads the spectrogram and the decoder writes text one token at a time.

Being a language model, the decoder uses context to resolve ambiguous sounds.

That handles accents, noise and many languages far better than older systems.

It also means it can hallucinate text during silence, which is a real failure mode.

Word error rate is the standard metric, counting substitutions, insertions and deletions.

Under five per cent is good for clean speech, and noisy multi-speaker audio is much worse.

Speaker separation is a distinct problem, since transcription alone does not say who spoke.

Streaming transcription trades accuracy for latency, since it cannot wait for the end of a sentence.

Want the full technical article? Wikipedia ↗
Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
What is audio usually converted into before a transformer sees it?
Generative AI

18 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close