Files
raea/docs/manual/reference/cli/setup-audio.md
shinyobjectz 4d44519fc1 Local models install and run on a Mac, Windows or Linux with nothing installed first
Each local model's setup is now tools/<model>/setup.py (standard library only, on tools/local_setup.py), run by uv
on any OS as raea runs it: uv on the PATH, else raea's own uv 0.12.24 fetched once into ~/.cache/raea-tools/uv (where
tools/ensure.sh puts it) and checked against its SHA-256. The setup.sh beside each is a wrapper for a Mac or Linux.
Until now each setup was a sh script needing uv already installed (brew install uv), so Windows had no way to
install any local model.

- SAO: Core ML on a Mac, ONNX Runtime elsewhere (CUDA where nvidia-smi finds a GPU; RAEA_SAO_CUDA=0|1); its WAV is
  written by Python's wave module, not an installed ffmpeg (same samples)
- matchmove, splat: footage read through PyAV, whose wheels carry FFmpeg's libraries (no ffmpeg/ffprobe needed);
  splat fetches Brush v0.3.0's release build for macOS arm64, Linux x86_64 or Windows x86_64, each SHA-256 checked
- goo: Taichi on Metal on a Mac, else its best GPU (CUDA, Vulkan) or the CPU; the backend is reported as run
- TokenSynth: its code as GitHub's archive at a pinned commit (no git); coremltools only on a Mac
- the engine runs .venv\Scripts\python.exe on Windows (venv_python), Brush's brush_app.exe
- tools/release.sh ships tools/local_setup.py
2026-11-18 16:24:45 -08:00

3.4 KiB
Raw Permalink Blame History

title, summary, order, sources
title summary order sources
raea setup-audio Install or check the local audio models: Stable Audio Open for foley and TokenSynth for instruments. 86
apps/tools/src/sound.rs

raea sao and raea tokensynth install their models the first time they're used. raea setup-audio does it on purpose, ahead of time, and says where each lives and how much disk it takes. Name one model to set up only that one.

raea setup-audio
raea setup-audio --check
raea setup-audio tokensynth

Each model's setup (share/raea/tools/sao/setup.py and share/raea/tools/tokensynth/setup.py beside an installed raea, each with a setup.sh that runs it on a Mac or Linux) installs it into ~/.cache/raea-sao or ~/.cache/raea-tokensynth (RAEA_SAO and RAEA_TOKENSYNTH move them):

  • SAO, about 2 GB: on a Mac, Stable Audio Open Small's Core ML models from a Hugging Face mirror at a pinned revision, each file checked against its SHA-256, t5-base's tokenizer, a small Python environment, and a T5 encoder converted once. On Windows and Linux, the same weights as three ONNX graphs (each checked against its SHA-256) on ONNX Runtime: with CUDA where nvidia-smi finds an NVIDIA GPU (its CUDA libraries add a few GB; RAEA_SAO_CUDA=0 keeps the CPU build), else on the CPU. Its licence is Stability AI's Community License (stability.ai/community-license-agreement), not an open one. As between you and Stability, you own the sounds it makes, as far as the law allows; they may not be used to create or improve another generative AI model, and Stability's acceptable use policy applies to them. What else the licence asks, of raea and of a commercial user, raea hasn't written down yet: read it before an SAO sound goes into a commercial piece.
  • TokenSynth, about 6 GB: its code from GitHub at a pinned commit (an archive: no git), a Python environment with torch, and its weights, DAC and CLAP from Hugging Face, then a converted fp16 runtime (and, on a Mac, Core ML models for --precision coreml). MIT.

Both need only a network connection, on a Mac, Windows or Linux: no Homebrew, git or FFmpeg. raea runs each setup through uv, the one on the PATH or else its own (uv 0.12.24, fetched once into ~/.cache/raea-tools/uv and checked against its SHA-256; RAEA_TOOLS_CACHE moves it), and uv brings the Python.

When a setup fails, the error names the command: run it yourself to see why (sh share/raea/tools/sao/setup.sh on a Mac or Linux; on Windows uv run --no-project --python 3.11 python -I share\raea\tools\sao\setup.py, with uv from the PATH or %USERPROFILE%\.cache\raea-tools\uv). Exit status 75 is another setup running in the same folder. RAEA_OFFLINE refuses the download. RAEA_AUDIO_AUTOSETUP=0 stops a render from installing a model itself, and stops raea setup-audio and ensure.sh too: with it set, run the model's setup yourself.

Usage

raea setup-audio [--check] [sao|tokensynth]   (install or check the local audio models)

Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.

Flags

Flag Takes What it does
--check – Say whether each model is installed, where it lives and how much disk it takes, without installing anything.