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.
2.0 KiB
title, summary, order, sources
| title | summary | order | sources | ||
|---|---|---|---|---|---|
| raea make sao | Make a sound effect from a description with Stable Audio Open, on this machine. | 111 |
|
raea make sao makes foley and sound effects from words with Stable Audio Open Small (on Core ML), running locally. It goes through the same
asset store a render does, with the same defaults as sao("…", {seconds}) in a composition, so a sound made here is
the one the composition finds already made, and the other way round. The model installs itself the first time (or
with raea setup-audio).
raea make sao "a heavy wooden door creaks open" --seconds 3 -o door.wav
raea make sao "rain on a tin roof" --seconds 8 --seed 4 -o media/sfx/rain-4.wav
A take is up to 11.9 s long; a longer --seconds comes back that long. Another --seed is another take of the same
prompt: sao() in a composition has no seed, so play a seed's take from its file (staticFile("sfx/rain-4.wav")).
Stable Audio Open Small does better on effects and field recordings than on music, so build an effect from short
layers (a transient, a body, a tail) and write music as notes on instruments (raea guide music). Its licence is
Stability AI's Community License: raea setup-audio says what that means.
Usage
raea make sao "PROMPT" [--seconds 2] [--seed 1] [--dir EDIT_DIR] [-o OUT.wav] (foley, local)
Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.
Flags
| Flag | Takes | What it does |
|---|---|---|
--dir |
EDIT_DIR |
The edit's folder, whose asset store keeps the sound (the current folder by default). |
--seconds |
2 |
How long the sound is. |
--seed |
1 |
The seed; another seed gives another take of the same prompt. |
-o |
OUT.wav |
Also write the sound to this file. |