acids-ircam/RAVE

Official implementation of the RAVE model: a Realtime Audio Variational autoEncoder

What it solves

RAVE is a tool for creating and using neural audio synthesis models that run in real time. It solves the problem of high-latency or low-quality neural audio generation by providing a variational autoencoder (VAE) that can compress audio into a compact latent space and reconstruct it, enabling live manipulation in music performances or installations.

How it works

RAVE is a variational autoencoder: it learns to encode audio into a latent representation and then decode it back into sound. The training process is split into three steps: dataset preparation, training, and export. Dataset preparation converts raw audio files into a suitable format (or uses a lazy mode to train directly on compressed files like mp3/ogg). Training uses configurable architectures—such as v2, discrete (like SoundStream/EnCodec), or lightweight versions for Raspberry Pi—with options for causal convolutions, different regularization objectives, and data augmentations (mute, compress, gain). After training, the model can be exported to a TorchScript file, and with the --streaming flag it uses cached convolutions for realtime processing. RAVE also supports training a prior model over the latent space for higher-level control.

Who it’s for

RAVE is aimed at musicians, sound designers, and researchers who want to use neural audio synthesis in live performances, installations, or offline batch processing. It integrates with Max/MSP and PureData via the nn~ external, and a VST version is available. Users can train custom models on their own audio data or use provided pretrained streaming models.

Highlights

  • Multiple architecture configurations (v1, v2, discrete, v3, raspberry, etc.) to trade off quality, latency, and hardware needs
  • Realtime streaming export with cached convolutions, compatible with live music software
  • Data augmentation options to improve generalization with limited datasets
  • Pretrained models available for download
  • Tutorials and a colab notebook for training RAVEv2
  • A VST beta for Windows, Mac, and Linux

Related

  • Project
  • Project
  • Project
  • Project