All models

torchaudio.models.WaveRNN

A single-layer recurrent vocoder that generates raw audio samples fast enough for real-time speech.

Audio and speech · 108 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (34 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
WaveRNN
Parameters
4.5M
Operations
108
Framework
PyTorch
Recurrent
No
Published
ICML 2018
Cited by
526 (as of 19 October 2026)
Authors
Nal Kalchbrenner, Erich Elsen, Karen Simonyan and others
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10584
Graph hash
e592b373d80ae228af2d49b2ff95582e1faf5a5e254c246ded80c057389dc5ab
Skeleton hash
2e25da35b2106689f350caa58ae13a9cd877731d3c6ce7ba3778509f6dcce09b
Architecture hash
86df2d3a5e624ecaead2ff4e5098524aed0007129538bd8f83c124fac5bfed06
Diagram SHA-256
6f526d08263950acbf9cf4a2c0fc753f4ba4c8e6f010ba5241fd2cff9520ca99
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

WaveRNN is a single-layer recurrent network for generating raw audio one sample at a time, designed so that text-to-speech synthesis runs fast without losing quality. The paper's argument is about operation count: it puts WaveNet at 60 sequential operations per sample and cuts that to 5. A sample therefore needs only five matrix-vector products in sequence, which custom GPU kernels turn into real speed.

The recurrent core is a variant of the GRU cell. In the paper's design the hidden state is split in two halves that predict the 8 coarse and the 8 fine bits of each 16-bit sample, with the fine prediction conditioned on the coarse one. That dual softmax predicts a 16-bit value through two small output spaces instead of one softmax over every 16-bit value. The benchmark is a single-speaker North American English text-to-speech dataset of 44 hours.

In A/B listening tests the paper reports no significant difference between WaveRNN-896 and WaveNet. With the sampling loop fused into one persistent GPU operation it generates 96,000 samples per second, four times real time for 24 kHz audio. The same paper shows that at a fixed parameter count large sparse networks beat small dense ones, up to sparsity levels beyond 96%. It also introduces Subscale WaveRNN, which produces 16 samples per step without loss of quality.

Key idea. WaveRNN replaces WaveNet's deep convolutional stack with a single-layer recurrent network and dual softmax that match its quality while sampling 4 times faster than real time.

  • wavernn
  • wave rnn
  • efficient neural audio synthesis
  • neural vocoder
  • text-to-speech
  • autoregressive audio
  • ljspeech
  • mel spectrogram vocoder
  • torchaudio wavernn

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kalchbrenner2018efficientneuralaudiosynthesis,
      title={Efficient Neural Audio Synthesis}, 
      author={Nal Kalchbrenner and Erich Elsen and Karen Simonyan and Seb Noury and Norman Casagrande and Edward Lockhart and Florian Stimberg and Aaron van den Oord and Sander Dieleman and Koray Kavukcuoglu},
      year={2018},
      eprint={1802.08435},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/1802.08435}, 
}