mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
The agent's sound line in engine/cli puts a sample library first, names raea guide sources, says music is composed for the cut and never a pad or drone by default, and keeps TokenSynth for a timbre no library has. Audio's src doc no longer offers lyria(), which is retired (and audio-stack.md says so), and the manual's example drops the media/ prefix staticFile doesn't take. The CLI pages say what is true: raea sounds' ids are exact (vcsl/upright-piano-knight, vcsl/bass-drum-1) and --all gives a pitched instrument one take a note; an SAO take is at most 11.9 s, a seed's take is played from its file, and SAO suits effects better than music; TokenSynth is for a missing timbre, curated; setup-audio says what each model fetches, its size and licence (SAO's is Stability AI's Community License, not an open one), what it needs and what its failures mean.
44 lines
2.0 KiB
Markdown
44 lines
2.0 KiB
Markdown
---
|
|
title: "raea sao"
|
|
summary: "Make a sound effect from a description with Stable Audio Open, on this machine."
|
|
order: 84
|
|
sources: ["apps/tools/src/sound.rs", "io/assets/src/local.rs"]
|
|
---
|
|
|
|
`raea 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`](setup-audio.md)).
|
|
|
|
```sh
|
|
raea sao "a heavy wooden door creaks open" --seconds 3 -o door.wav
|
|
raea 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`](setup-audio.md) says what that means.
|
|
|
|
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
raea 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. |
|
|
|
|
<!-- generated:end -->
|