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

4.1 KiB
Raw Permalink Blame History

title, summary, order, sources
title summary order sources
raea voice Speech in and out on this computer, as lines of JSON on stdin and stdout: what raea.app's Ideate hears and speaks with. While it speaks it doesn't listen, unless --duplex (headphones: it listens all the time) or --over (speakers: its own voice is taken out of the microphone's sound, new and not yet tried across real rooms). 84
engine/cli/src/cli.rs

Speech in and out on this computer, as lines of JSON on stdin and stdout: what raea.app's Ideate hears and speaks with. While it speaks it doesn't listen, unless --duplex (headphones: it listens all the time) or --over (speakers: its own voice is taken out of the microphone's sound, new and not yet tried across real rooms).

Usage

raea voice [--voice NAME] [--duplex] [--over] [--pause MS] [--from IN.wav] [--to OUT.wav] [--room GAIN] [--fast] | raea voice hear FILE.wav | raea voice say "WORDS" -o OUT.wav [--voice NAME]   (speech in and out on this computer, as lines of JSON on stdin and stdout: what raea.app's Ideate hears and speaks with. While it speaks it doesn't listen, unless --duplex (headphones: it listens all the time) or --over (speakers: its own voice is taken out of the microphone's sound, new and not yet tried across real rooms); --room GAIN is a simulated room for checking --over with files; hear writes a recording's words, say speaks words to a file)

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

Flags

Flag Takes What it does
--duplex – Listen all the time, with nothing taken out of the microphone's sound. For headphones: through speakers it hears itself and stops.
--fast – With --from: read the recording as fast as it can be heard, not at the pace it was spoken. For tests.
--from IN.wav A recording in the microphone's place.
--over – Listen while it speaks, with its own voice taken out of the microphone's sound, so the person can talk over it through speakers. Experimental, and raea.app doesn't use it. It works in a simulated room. In the one real room it was tried in (a wireless USB microphone and a Mac mini's speakers, 11-25) its own voice was never taken out well enough to be sure of, so nobody could talk over it and it behaved as without the flag: it never stopped itself by mistake either.
--pause MS How long a silence ends the person's turn, in milliseconds.
--room GAIN With --from and --over: a simulated room. What it says comes back into the recording at this gain (0.5 is a quiet room, 1.5 a loud one).
--to OUT.wav A file in the speakers' place: everything it says is written there.
--voice NAME The voice it speaks in, one of Pocket's own (alba when not given).
-o OUT.wav say: the file the spoken words are written to.

What it reads and writes

One JSON object a line. On stdin: {"say":{"id":"a","text":"..."}} adds words to what it's saying (send them as they come), {"end":"a"} says that's all of them, {"stop":true} stops it mid-sentence, {"mute":true} and {"mute":false} close and open the microphone, {"quit":true} ends the session.

On stdout: {"ready":...} once the models are loaded, {"speech":"began"} and {"speech":"ended"} as the person talks, {"heard":{"text":"..."}} with their words when their turn ends, {"saying":{"id":"a"}}, {"said":{"id":"a"}} or {"stopped":{"id":"a"}} for what it spoke, {"level":-32.5} for the microphone's loudness, and {"error":"..."}. A microphone raea isn't allowed to use gives silence with no error from the system: after three seconds of it, the error says to allow raea in the system's privacy settings.

raea voice hear note.wav                       # a recording's words
raea voice say "Good morning." -o hello.wav    # words to a file

The models (Silero's voice detector, Parakeet for the words, Pocket for the voice) run on this computer; nothing is sent anywhere.