Voice & Audio — Analysis

Neural Text-to-Speech: How Artificial Intelligence Learned to Speak

From algorithmic unit selection using the Viterbi algorithm to flow-matching trajectories, a look back at three decades of acoustic modeling.

Speech synthesis: Over three decades, speech synthesis has evolved from the painstaking selection of phonemes recorded in a studio to continuous models capable of shaping complex acoustic waveforms. This shift was driven not only by available computing power, but by a profound transformation in the mathematical frameworks applied to the signal. An analysis of a journey from combinatorial lattices to ordinary differential equations.

Illustration of neural voice synthesis technology with AI elements.

The peak of concatenative synthesis: Viterbi and Google’s anechoic chambers

In the early 2010s, before the dominance of deep learning, industrial synthesis relied on unit selection, formalized by Hunt and Black in 1996 and later perfected at scale by Google for Android and Google Search. This approach required professional voice actors to record dozens of hours of carefully controlled speech in anechoic chambers (or sound-treated rooms) to ensure recordings free of reverberation and a perfectly consistent timbre.

The corpus was then segmented into millions of diphones or half-syllables. At inference time, the Viterbi algorithm determined the optimal path through this graph of candidate units by minimizing a target cost (phonological context) and a concatenation cost (spectral continuity at boundaries).

Although the natural timbre was preserved, the system remained rigid, unable to vary intonation, and costly to adapt to other languages.

The parametric interlude: HMM abstraction

In parallel, statistical parametric synthesis had taken hold in the late 1990s through architectures based on hidden Markov models (HMMs), notably the academic HTS toolkit (1999). Acoustic data was no longer stored in raw form, but converted into compact parameters (fundamental frequency, spectrum, duration) and then synthesized by a vocoder (such as STRAIGHT or WORLD).

While this mathematical abstraction eliminated amplitude jumps and drastically reduced the memory footprint, statistical averaging of the distributions produced a muffled, artificial voice.

The neural breakthrough: WaveNet and Tacotron 2

In September 2016, DeepMind overturned the state of the art with WaveNet. Using dilated causal convolutions to predict the probability distribution of raw audio samples (16 to 24 kHz), WaveNet produces a waveform without a traditional vocoder.

In late 2017, Google released Tacotron 2, unifying the pipeline in an end-to-end architecture: a recurrent network encodes text as a Mel spectrogram, while a conditioned WaveNet vocoder reconstructs the time-domain signal. Subjective evaluations (MOS scores) then reached levels statistically comparable to human speech.

The continuous paradigm: diffusion and flow matching

Despite their fidelity, autoregressive models suffered from very slow, sequential, step-by-step generation. Following the emergence of non-autoregressive models (FastSpeech 2 in 2020) and acoustic diffusion systems, another breakthrough came in 2023 with conditional flow matching, illustrated by Meta’s work on Voicebox.

By modeling a vector field that connects Gaussian noise to the target distribution along straight trajectories solved by ordinary differential equations (ODEs), the system generates expressive, context-aware speech in fewer iterations, without the prohibitive cost of previous architectures.