RAVE documentation¶
RAVE (Realtime Audio Variational autoEncoder) is a neural audio codec / synthesizer that runs
in real time. You train it on a corpus of sounds; it learns a compact latent representation
of that corpus, which you can then use to resynthesize, transform or generate audio — offline
from the command line, or live in Max/MSP, Pure Data or the RAVE VST through
nn~.
This documentation covers version 2.4. Coming from 2.3? See What's new in 2.4.
Where to start¶
| I want to... | Read |
|---|---|
| Play with a pretrained model in Max | Tutorial 1 — Use a model in Max/MSP |
| Train a model on my own sounds | Tutorial 2 — Train a model |
| Export my model for Max/MSP, Pd or the VST | Tutorial 3 — Export a model for Max/MSP |
| Process audio files without Max | Tutorial 4 — Use a model from the command line |
| Get more musical / meaningful latent controls | Tutorial 5 — Add custom representations |
| Generate audio without any input, or transfer timbre (AFTER) | Tutorial 6 — Train a prior / Go AFTER! |
| Adapt an existing model to new sounds or inputs | Tutorial 7 — Fine-tune a model |
| Know what changed since 2.3 | What's new in 2.4 |
| Copy-paste a command for a common case | Cookbook |
| Look up a flag, method or config | Reference |
Reference¶
- Command-line reference — every
rave <command>and its flags. - Configurations — architectures, regularizations, gin overrides, augmentations.
- Exported models (
.ts) — methods and attributes available innn~and in Python. - Python API — loading checkpoints, exporting, projections, uncompiling.
- Run folders and checkpoints — what training writes to disk and how RAVE finds it.
- Tensorboard guide — reading the training curves.
The RAVE workflow in one picture¶
audio files ──► rave preprocess ──► dataset ──► rave train ──► run folder (.ckpt + config.gin)
│ │
│ ├─► rave dimred (custom projections)
│ ├─► rave train_prior (generation without input)
│ └─► rave finetune (adapt to new data)
▼
rave export (--streaming) ──► model.ts ──► nn~ (Max / Pd), RAVE VST,
rave generate, torch.jit.load
Installation¶
Install PyTorch first (pick the build matching your GPU on pytorch.org), then RAVE:
conda create -n rave python=3.11
conda activate rave
conda install -c conda-forge pytorch torchaudio ffmpeg sox # or pip, see pytorch.org
pip install acids-rave
RAVE requires Python ≥ 3.11. Training needs a GPU (CUDA, or Apple mps for small experiments);
using an exported model only needs a CPU. Optional extras:
Check the install with:
Getting help¶
rave <command> --helpfullprints every flag of a command.- Discord and GitHub discussions.
- The FAQ at the end of the README.