What is WaveNet? Raw-audio generation one sample at a time
WaveNet is an autoregressive neural network that models a probability distribution for the next audio sample. Learn how causal and dilated convolutions work, how text and speaker conditioning guide TTS, and why high fidelity can come with slow sequential inference.
What is WaveNet? Raw-audio generation one sample at a time
WaveNet is an autoregressive neural network that models recorded waveforms directly to generate new audio. It conditions each next sample on previous samples; for text-to-speech (TTS), it also receives the text or phonetic information to speak. The original design can model fine waveform detail, but sequential sampling can make inference slow.
Predicting the next sample
For a waveform x of length T, the joint probability is factored as p(x) = p(x₁) × p(x₂ | x₁) × … × p(xₜ | x₁, …, xₜ₋₁). The model predicts a distribution over each sample value. During generation it draws a value and feeds it back as input for the next prediction. Training can compute predictions in parallel because the complete target waveform is known; generation must proceed sequentially because each next sample depends on the previous one.
Causal convolutions prevent future samples from leaking into a prediction. Dilated convolutions expand the time span visible to deeper layers, helping the network model long and short audio patterns without adding many layers.
What conditioning changes in TTS
An unconditioned WaveNet can generate plausible audio from its learned distribution, but it is not instructed to say a particular sentence. TTS conditions it on text, phonemes, or linguistic features. A multi-speaker model can also receive a speaker ID or embedding to render a sentence in different voices.
Speaker identity can be global conditioning; phoneme and prosody features vary across time and are local conditioning. The original paper found that linguistic conditioning alone could produce unnatural stress; adding F0 (fundamental frequency) information helped in its experiment. F0 represents the pitch contour.
Quality and speed are separate concerns
The original paper reported naturalness MOS of 4.21/5 for North American English and 4.08/5 for Mandarin using linguistic and F0 conditioning. Its evaluation used 24.6 hours of single-speaker English and 34.8 hours of single-speaker Mandarin. These subjective scores apply to those datasets and listening tests, not every language or a ranking of current models.
Sequential inference is a practical constraint. At 24 kHz, one second of audio contains 24,000 samples, and basic autoregressive generation predicts them in order. DeepMind says the early model could take hours to generate one second. Probability density distillation transferred a teacher WaveNet’s distribution to a smaller, more parallel student; Parallel WaveNet therefore does not use the original inference process.
| Need | What to evaluate |
|---|---|
| Detailed waveform and naturalness | Test audio quality and fit to target data. |
| Low latency and compute | Measure sequential cost first; compare parallel vocoders and other architectures. |
| Control of what is said | Check text/phoneme/prosody conditioning and test pronunciation and stress errors. |
| Convert another model’s spectrogram to audio | As a vocoder, match sample rate and mel-spectrogram settings between models. |
Tacotron 2 is a well-known example that places a WaveNet vocoder after a mel-spectrogram predictor. Distinguish a complete TTS system from a WaveNet used only as its waveform-generating vocoder. Compare it with Tacotron.
Validation checklist
Verify that text/phoneme conditions match the spoken output; listen for omissions, repeats, and misplaced stress.
Hold out tests representing the target language, speakers, recording conditions, and utterance lengths.
Review pronunciation, prosody, noise/artifacts, and sentence-level errors; MOS alone is insufficient.
Measure generation time, memory, concurrency, and streaming latency on deployment hardware.
Record required sample rate, audio encoding, conditioning features, and vocoder mel settings.
Sources
van den Oord et al., [WaveNet: A Generative Model for Raw Audio](https://arxiv.org/abs/1609.03499), 2016.
DeepMind, [WaveNet principles and examples](https://deepmind.google/blog/wavenet-a-generative-model-for-raw-audio/), 2016.
DeepMind, [WaveNet research overview and later developments](https://deepmind.google/research/wavenet/).
DeepMind, [High-fidelity speech synthesis with WaveNet](https://deepmind.google/blog/high-fidelity-speech-synthesis-with-wavenet/), 2017.