Speech and Audio Intelligence
Automatic Speech Recognition: From GMM-HMM to End-to-End Neural Models · 15 min
For decades, the standard automatic speech recognition pipeline combined three separately trained components: an acoustic model that estimated the probability of short frames of audio given a phonetic unit, a pronunciation lexicon mapping words to sequences of those phonetic units, and a language model estimating the probability of word sequences (the same n-gram or neural language models covered in the language modeling module). The acoustic model itself was traditionally a Gaussian mixture model (GMM) layered on top of a hidden Markov model (HMM), which modeled the temporal structure of speech as transitions between hidden phonetic states, each state's audio output governed by a mixture of Gaussian distributions. Hinton and colleagues, reporting a shared effort across four major industrial and academic research groups, demonstrated that replacing the Gaussian mixture component with a deep neural network trained to estimate the same state probabilities — while keeping the hidden Markov model's temporal structure — outperformed GMM-HMM systems by a wide margin across multiple large-vocabulary benchmarks, with some tasks seeing relative error reductions above 30%. Their two-stage recipe, generative pretraining of the network using restricted Boltzmann machines followed by discriminative fine-tuning, became for several years the standard playbook that shifted the entire field of speech recognition decisively toward deep learning.
The DNN-HMM hybrid still relied on hand-engineered pipeline components: a fixed phonetic lexicon, separately trained language and acoustic models, and complex decoding search procedures to combine them. End-to-end neural approaches instead train a single model to map audio directly to text, collapsing the traditional pipeline. Whisper, trained by Radford and colleagues, exemplifies this at large scale: rather than requiring meticulously curated, phonetically labeled training data, the model was trained on 680,000 hours of audio paired with transcripts collected from the internet, a "weakly supervised" approach because the transcripts are noisy and imperfectly aligned rather than professionally annotated. Despite — or arguably because of — this scale and diversity, Whisper achieved competitive performance in zero-shot transfer, meaning it was evaluated directly on new benchmarks without any task-specific fine-tuning, approaching human-level robustness and accuracy across many languages and acoustic conditions. Word error rate (WER), which counts substitutions, deletions, and insertions needed to transform a system's transcript into the reference transcript, divided by the number of words in the reference, remains the standard evaluation metric for comparing systems across this entire historical arc, from GMM-HMM to end-to-end transformers.
Speech and Audio Synthesis · 15 min
Text-to-speech synthesis has historically followed its own multi-stage pipeline: text normalization (expanding abbreviations and numbers into spoken form), prediction of acoustic features such as a mel-spectrogram from the normalized text, and finally a vocoder that converts those intermediate acoustic features into an actual audio waveform. Traditional vocoders relied on parametric or concatenative methods — either generating audio from a compact statistical model of vocal tract parameters, or splicing together short recorded speech units — both of which tended to sound noticeably synthetic or discontinuous. Van den Oord and colleagues' WaveNet represented a fundamentally different approach: an autoregressive generative model that predicts raw audio samples directly, one at a time, with each new sample's probability distribution conditioned on every sample generated before it. To make this computationally feasible despite audio's extremely high sampling rate (commonly 16,000 or more samples per second), WaveNet used dilated causal convolutions, which exponentially increase the model's effective receptive field with each added layer without requiring an equally deep, expensive stack of ordinary convolutions.
In human evaluations, WaveNet-generated speech was judged substantially more natural than the best parametric and concatenative systems then available, in both English and Mandarin, and because it is fundamentally a generative model of the audio signal itself, a single trained network could represent multiple distinct speakers and switch between them through a conditioning signal, rather than requiring a separately trained model per voice. The same autoregressive raw-waveform approach, trained on music instead of speech, produced what the original authors described as novel and often highly realistic musical fragments, an early demonstration that the technique generalizes well beyond speech to audio synthesis more broadly. Modern production text-to-speech systems have continued to evolve past pure autoregressive sample-by-sample generation toward faster parallel and diffusion-based vocoders, but the core generative modeling philosophy WaveNet established — directly modeling the raw audio distribution rather than hand-engineered intermediate parameters — remains foundational, and the same underlying capability that produces natural-sounding synthetic voices also raises real ethical concerns around voice cloning and consent that the field continues to grapple with.
Speaker Processing, Audio Classification, and Music AI · 13 min
Beyond transcribing what was said, a substantial branch of audio intelligence concerns who said it and in what acoustic context. Speaker verification asks whether a given audio segment matches a claimed identity, typically by comparing a learned voice embedding against a stored reference; speaker diarization goes further, segmenting a multi-speaker recording (such as a meeting) into stretches attributed to each distinct speaker without necessarily knowing their identities in advance, answering the question "who spoke when." Whisper's training and evaluation illustrated how a single model can support closely related capabilities such as language identification and translation as byproducts of scale and diverse multilingual training data, rather than requiring an entirely separate, purpose-built system for each subtask — a pattern increasingly common across audio intelligence as large pretrained models absorb capabilities that once demanded bespoke pipelines.
General audio event classification — recognizing categories like glass breaking, a dog barking, or a siren from environmental sound rather than speech — shares its core deep learning machinery with speech and music systems, typically converting raw audio into a spectrogram-like time-frequency representation before applying convolutional or transformer-based classifiers, the same representational strategy that underlies acoustic modeling in speech recognition. Music AI, spanning tasks like automatic transcription of notes from audio, genre and mood classification, and generative music composition, has benefited from the same generative modeling advances demonstrated by systems like WaveNet, which showed strong raw-waveform music generation capability directly from the same architecture built for speech. That said, it is worth being honest about where the field currently stands: unlike speech recognition, which has decades of standardized benchmarks, large labeled datasets, and a widely agreed evaluation metric in word error rate, music and general audio understanding still lack comparably mature, universally agreed benchmarks and evaluation protocols, making this a genuinely active and less settled research frontier rather than a solved engineering problem.
Word Error Rate: A Worked Example
Against a 10-word reference, the hypothesis has one substitution ("fox" to "cat"), one deletion ("over" is missing), and one insertion ("so" added), giving WER = (1+1+1)/10 = 30%, computed directly from the errors and reference length shown above.
- The core shift from GMM-HMM to deep neural acoustic models, then to end-to-end systems like Whisper, was a steady move from hand-engineered pipeline stages toward a single model learning directly from data.
- WaveNet's dilated causal convolutions let an autoregressive model reach a large effective receptive field without a prohibitively deep ordinary convolutional stack, which is what made sample-by-sample raw audio generation computationally tractable.
- Word error rate is a single unified metric that has remained comparable across five decades of otherwise radically different speech recognition architectures.
Recall Practice
Glossary
- Acoustic model
- The component of a speech recognition system that estimates the probability of observed audio given a phonetic unit or state.
- Word error rate (WER)
- The standard speech recognition evaluation metric: substitutions plus deletions plus insertions, divided by the number of words in the reference transcript.
- Zero-shot transfer
- Evaluating a trained model directly on a new task or benchmark without any additional task-specific fine-tuning.
- Vocoder
- The component of a text-to-speech system that converts intermediate acoustic features (or, in WaveNet's case, learns to generate the signal directly) into an audio waveform.
- Dilated causal convolution
- A convolutional layer that skips over increasingly large gaps in its input across depth, exponentially expanding the effective receptive field while only looking at past (causal) inputs.
- Speaker diarization
- The task of segmenting a multi-speaker audio recording into stretches attributed to each distinct speaker, answering 'who spoke when.'
Compute Word Error Rate by Hand on a Toy Transcript
A fully simulated exercise, not run against any real speech recognizer: students are given a short reference sentence and a hypothesis transcript produced by a hypothetical system, asked to align the two word by word, identify substitutions, deletions, and insertions, and compute WER using the standard formula, then discuss how a single insertion or deletion changes the score compared to a substitution.
Ready to test yourself?
5 questions on this module.