Files
shinyobjectz bbd7369548 One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done; raea make is the asset tools
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every
render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and
place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code
are gone with no alias (MK41).

brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it
(the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written
back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one
goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines
and signed asks run inside the loop (MK47).

`raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake|
sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went.
docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out.

raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a
file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal
runner runs on the shipped binary.
2026-11-29 16:02:31 -08:00

3.5 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. 83
apps/tools/src/sound.rs

raea make sao and raea make 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.