Skip to content

Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.

sounds: decode through private temp files, never a pipe; offer recordings with sizes and remember a no

Alex Greenshpun2844bc6885f1
diff --git a/README.md b/README.md
index 12edb3c..d047782 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,7 @@ Install the optional sound pack and eight acoustic instruments play recordings o
```bash
node <skill>/engine/tools/soundfetch.mjs list # the install directory and what is installed
-node <skill>/engine/tools/soundfetch.mjs get all # download, verify by hash, unpack
+node <skill>/engine/tools/soundfetch.mjs get all # download (373 MB), verify by hash, unpack; your agent asks you first
```
- **Keys:** a piano modelled on a real Steinway grand, Rhodes and Wurlitzer electric pianos, tonewheel and pipe organs, mallets and bells.
diff --git a/skills/anidoodle/SKILL.md b/skills/anidoodle/SKILL.md
index c206da8..bfac277 100644
--- a/skills/anidoodle/SKILL.md
+++ b/skills/anidoodle/SKILL.md
@@ -10,8 +10,8 @@ metadata:
Pictures, films and interactive pieces drawn entirely in code. One pure function paints every
frame; another composes the score and plays it. The same source rebuilds the same pixels and the
-same sound on any machine, at any size, at any length. Eight acoustic instruments play recordings
-of real ones when the optional sound pack is installed; every score plays without it, unchanged.
+same sound on any machine, at any size, at any length. Eight acoustic instruments can play recordings
+of real ones from an optional download. ASK the user before any score work; never download unasked.
The engine is the easy half. Work gets thrown away because it had no point, because the subject
was an icon of itself, because a style was only a palette swap, because the music had no form,
@@ -113,8 +113,8 @@ node tools/still.mjs intro --frame 0 --out out/look.png --scale 2 # a still, w
node tools/render.mjs intro # MP4; --out x.gif|x.webm|x.apng
node tools/gate.mjs intro # determinism, contract, dead air
node tools/emit.mjs intro --out out/intro.html # one self-contained offline player
-node <skill>/engine/tools/soundfetch.mjs list # the install directory and what is installed; no network
-node <skill>/engine/tools/soundfetch.mjs get all # the one command that downloads; then parts play recordings
+node <skill>/engine/tools/soundfetch.mjs list # no network. Nothing installed and not declined: ask the user now
+node <skill>/engine/tools/soundfetch.mjs get piano rooms # on their yes (piano 233 MB, all 373 MB). On no: soundfetch.mjs decline
```
| Tool | What it does |
diff --git a/skills/anidoodle/engine/tools/audio.mjs b/skills/anidoodle/engine/tools/audio.mjs
index 018f072..13e8713 100644
--- a/skills/anidoodle/engine/tools/audio.mjs
+++ b/skills/anidoodle/engine/tools/audio.mjs
@@ -5,7 +5,7 @@ import { resolve } from 'node:path';
import { pathToFileURL } from 'node:url';
import { overlay } from './overlay.mjs';
import { splitShape, requireFilm } from './names.mjs';
-import { loadBanks, soundIds, printSounds, codeBuiltNotice } from './sounds.mjs';
+import { loadBanks, soundIds, printSounds, soundsNotice } from './sounds.mjs';
import { soundsDir } from './soundfetch.mjs';
let filmModuleId = 0;
@@ -25,7 +25,7 @@ export const prepareFilmSounds = (film, M, pack = process.env.ANIDOODLE_SOUNDS |
for (const p of scores) printSounds(M, p);
const recorded = scores.some(p => !p.legacy && (p.parts.some(part => part.notes.length && part.opts?.sampled !== false && M.bankFor(part.inst, typeof part.opts?.variant === 'string' ? part.opts.variant : undefined)) ||
[p.plan.space?.room ?? M.mixProfile(p.plan.style, p.mix).space?.room, M.mixProfile(p.plan.style, p.mix).drumRoom?.room].some(id => M.roomFor(id))));
- if (!recorded) codeBuiltNotice();
+ soundsNotice(M, scores);
return recorded;
};
export const filmFloat32 = (film, sampleRate = 48000) => {
diff --git a/skills/anidoodle/engine/tools/music.mjs b/skills/anidoodle/engine/tools/music.mjs
index ea61a91..08c0105 100644
--- a/skills/anidoodle/engine/tools/music.mjs
+++ b/skills/anidoodle/engine/tools/music.mjs
@@ -32,7 +32,7 @@ import { dirname, join, resolve, basename } from "node:path";
import { fileURLToPath } from "node:url";
import { Worker } from "node:worker_threads";
import { availableParallelism } from "node:os";
-import { loadBanks, soundIds, printSounds, codeBuiltNotice } from "./sounds.mjs";
+import { loadBanks, soundIds, printSounds, soundsNotice } from "./sounds.mjs";
import { soundsDir } from './soundfetch.mjs';
const here = dirname(fileURLToPath(import.meta.url));
@@ -42,7 +42,7 @@ let SOUNDS_DIR;
let ROOM_ID;
const SOUNDS_URL = new URL("./sounds.mjs", import.meta.url).href;
let noticed = false;
-const loadSounds = (M, piece) => { loadBanks(M, SOUNDS_DIR, soundIds(piece)); if (!SOUNDS_DIR && !noticed) { codeBuiltNotice(); noticed = true; } };
+const loadSounds = (M, piece) => { loadBanks(M, SOUNDS_DIR, soundIds(piece)); if (!noticed) noticed = soundsNotice(M, [piece]); };
const load = async () => {
const r = await build({ entryPoints: [join(here, "../src/canvas-core/music/index.ts")], bundle: true, write: false, format: "esm", platform: "neutral", target: "es2022", logLevel: "error" });
ENGINE_URL = "data:text/javascript;base64," + Buffer.from(r.outputFiles[0].text).toString("base64");
diff --git a/skills/anidoodle/engine/tools/soundfetch-unit.mjs b/skills/anidoodle/engine/tools/soundfetch-unit.mjs
index cf326b8..1adb379 100644
--- a/skills/anidoodle/engine/tools/soundfetch-unit.mjs
+++ b/skills/anidoodle/engine/tools/soundfetch-unit.mjs
@@ -356,4 +356,16 @@ const list2 = await run(["list"]);
assert(!list2.includes("available"), "everything installed");
ok("get all: skips installed, installs the rest, merged manifest verifies");
+{ // the offer is made once: list says to ask, decline is remembered, a later get clears it
+ const home = join(dir, "decline-home"), e = { HOME: home, ANIDOODLE_SOUNDS: join(home, "pack") };
+ mkdirSync(home, { recursive: true });
+ assert((await run(["list"], e)).includes("ASK THE USER"));
+ await run(["decline"], e);
+ assert(existsSync(join(home, ".anidoodle", "sounds-declined")));
+ assert((await run(["list"], e)).includes("declined by the user"));
+ await run(["get", "harp"], e);
+ assert(!existsSync(join(home, ".anidoodle", "sounds-declined")));
+ ok("offer, decline, later yes: asked once, remembered, cleared by get");
+}
+
console.log(`\n${pass} checks passed`);
diff --git a/skills/anidoodle/engine/tools/soundfetch.mjs b/skills/anidoodle/engine/tools/soundfetch.mjs
index c6c967c..1632aa1 100644
--- a/skills/anidoodle/engine/tools/soundfetch.mjs
+++ b/skills/anidoodle/engine/tools/soundfetch.mjs
@@ -46,6 +46,12 @@ const DEFAULT_URL = "https://github.com/alexgreensh/anidoodle/releases/download/
// sha256 of anidoodle-sounds-v1.json for the release, produced by `soundpack.mjs dist` of
// pack-v1; a tampered index is refused before anything downloads.
const INDEX_SHA256 = "558d7fcb9138afa090ccf16b23355edbf8b98f63c26151646bf1721a6969840a";
+// Download size of each v1 instrument archive, in MB: printed when a piece could play recordings
+// that are not installed, so the user is asked with the real cost. Travels with the pin above.
+export const PACK_MB = { piano: 233, "piano.upright": 56, harp: 31, vibes: 25, "bell.tubular": 20, timpani: 16, glockenspiel: 7, marimba: 3 };
+// "No thanks" is remembered here, outside any pack directory, so the question is asked once.
+const DECLINED = () => join(homedir(), ".anidoodle", "sounds-declined");
+export const soundsDeclined = () => existsSync(DECLINED());
const MAX_INDEX_BYTES = 8 * 1024 * 1024; // the real index is ~100 KB; this is headroom, not fit
const MAX_ARCHIVE_BYTES = 8 * 1024 * 1024 * 1024; // 8 GiB: a sane bound, far over the ~234 MB real
@@ -358,6 +364,7 @@ const installArchive = async (a, root, index) => {
swap(root, stage, top);
mergeManifest(root, a.manifest);
console.log("installed");
+ rmSync(DECLINED(), { force: true }); // they said yes after all
} finally {
rmSync(tmp, { force: true });
rmSync(stage, { recursive: true, force: true });
@@ -411,6 +418,8 @@ const cmdList = async () => {
const m = readMerged(root);
const src = source();
console.log(`install: ${root}${m ? "" : " (nothing installed)"}`);
+ if (soundsDeclined()) console.log("recordings: declined by the user. Do not ask again; `get` still installs them.");
+ else if (!m) console.log(`recordings: not installed and not yet offered. ASK THE USER whether they want real recorded instruments: ${Object.entries(PACK_MB).map(([id, mb]) => `${id} ${mb} MB`).join(", ")}, rooms 0.4 MB. Yes: get <ids> rooms. No: decline.`);
if (isLocalSrc(src)) {
// a local or file:// source is read from disk - no network involved - so the index's
// available set can be shown beside the installed state
@@ -487,8 +496,9 @@ if (isMain()) (async () => {
else if (cmd === "where" && !args.length) { claimRoot(installRoot()); console.log(installRoot()); }
else if (cmd === "verify" && !args.length) cmdVerify();
else if (cmd === "remove" && args.length === 1) await cmdRemove(args[0]);
+ else if (cmd === "decline" && !args.length) { mkdirSync(dirname(DECLINED()), { recursive: true }); writeFileSync(DECLINED(), new Date().toISOString() + "\n"); console.log("noted: films keep the code-built instruments and nobody is asked again. `get` installs recordings any time."); }
else {
- console.error("usage: node tools/soundfetch.mjs list | get <id...|all> | where | verify | remove <id>");
+ console.error("usage: node tools/soundfetch.mjs list | get <id...|all> | where | verify | remove <id> | decline");
process.exit(2);
}
})().catch((e) => { console.error(`error: ${e.message}`); process.exit(1); });
diff --git a/skills/anidoodle/engine/tools/sounds-unit.mjs b/skills/anidoodle/engine/tools/sounds-unit.mjs
index d8d9c28..a861f36 100644
--- a/skills/anidoodle/engine/tools/sounds-unit.mjs
+++ b/skills/anidoodle/engine/tools/sounds-unit.mjs
@@ -57,7 +57,7 @@ check('forced FLAC demuxers decode the exact hashed bytes even after the path ch
const oldPath = process.env.PATH;
for (const command of ['ffprobe', 'ffmpeg']) {
const real = execFileSync('which', [command], { encoding: 'utf8' }).trim();
- const shim = `#!/usr/bin/env node\nimport {readFileSync,writeFileSync} from 'node:fs';\nimport {execFileSync} from 'node:child_process';\nimport {createHash} from 'node:crypto';\nconst args=process.argv.slice(2), input=readFileSync(0);\nif(args[args.indexOf('-f')+1]!=='flac'||!args.includes('pipe:0'))throw Error('decoder must force FLAC on stdin');\nif(createHash('sha256').update(input).digest('hex')!==${JSON.stringify(zone.sha256)})throw Error('decoder did not receive hashed bytes');\n${command === 'ffprobe' ? `writeFileSync(${JSON.stringify(file)},'#EXTM3U\\nhttps://invalid.example/external.flac\\n');` : ''}\nprocess.stdout.write(execFileSync(${JSON.stringify(real)},args,{input,maxBuffer:1<<28}));\n`;
+ const shim = `#!/usr/bin/env node\nimport {readFileSync,writeFileSync} from 'node:fs';\nimport {execFileSync} from 'node:child_process';\nimport {createHash} from 'node:crypto';\nconst args=process.argv.slice(2), src=args[args.indexOf('-i')+1];\nif(args[args.indexOf('-f')+1]!=='flac'||args.includes('pipe:0')||src.startsWith(${JSON.stringify(root)}))throw Error('decoder must force FLAC on a private copy, never a pipe or the pack path');\nif(createHash('sha256').update(readFileSync(src)).digest('hex')!==${JSON.stringify(zone.sha256)})throw Error('decoder did not receive hashed bytes');\n${command === 'ffprobe' ? `writeFileSync(${JSON.stringify(file)},'#EXTM3U\\nhttps://invalid.example/external.flac\\n');` : ''}\nexecFileSync(${JSON.stringify(real)},args,{stdio:['ignore','inherit','inherit']});\n`;
const path = join(wrappers, command); writeFileSync(path, shim); chmodSync(path, 0o755);
}
try { process.env.PATH = wrappers + ':' + oldPath; M.clearBanks(); loadBanks(M, root, ['piano']); assert.equal(M.bankFor('piano').zones[0].channels[0].length, frames); }
@@ -66,7 +66,7 @@ check('forced FLAC demuxers decode the exact hashed bytes even after the path ch
check('a wedged decoder is killed and retried', () => {
const wrappers = join(root, 'wedge-wrappers'), marker = join(root, 'wedged-once'); mkdirSync(wrappers, { recursive: true });
const oldPath = process.env.PATH, real = execFileSync('which', ['ffmpeg'], { encoding: 'utf8' }).trim();
- writeFileSync(join(wrappers, 'ffmpeg'), `#!/usr/bin/env node\nimport {readFileSync,writeFileSync,existsSync} from 'node:fs';\nimport {execFileSync} from 'node:child_process';\nconst input=readFileSync(0);\nif(!existsSync(${JSON.stringify(marker)})){writeFileSync(${JSON.stringify(marker)},'x');setInterval(()=>{},1000);}\nelse process.stdout.write(execFileSync(${JSON.stringify(real)},process.argv.slice(2),{input,maxBuffer:1<<28}));\n`); chmodSync(join(wrappers, 'ffmpeg'), 0o755);
+ writeFileSync(join(wrappers, 'ffmpeg'), `#!/usr/bin/env node\nimport {writeFileSync,existsSync} from 'node:fs';\nimport {execFileSync} from 'node:child_process';\nif(!existsSync(${JSON.stringify(marker)})){writeFileSync(${JSON.stringify(marker)},'x');setInterval(()=>{},1000);}\nelse execFileSync(${JSON.stringify(real)},process.argv.slice(2),{stdio:['ignore','inherit','inherit']});\n`); chmodSync(join(wrappers, 'ffmpeg'), 0o755);
try { process.env.PATH = wrappers + ':' + oldPath; process.env.ANIDOODLE_DECODE_TIMEOUT_MS = '3000'; M.clearBanks(); loadBanks(M, root, ['piano']); assert.equal(M.bankFor('piano').zones[0].channels[0].length, frames); assert.ok(existsSync(marker)); }
finally { process.env.PATH = oldPath; delete process.env.ANIDOODLE_DECODE_TIMEOUT_MS; }
});
@@ -99,7 +99,7 @@ check('Windows decoder selection uses absolute PATH binaries, not implicit curre
for (const command of ['ffprobe', 'ffmpeg']) {
const real = execFileSync('which', [command], { encoding: 'utf8' }).trim();
const shim = join(windowsPath, command + '.mjs');
- writeFileSync(shim, `import {readFileSync,writeFileSync} from 'node:fs'; import {execFileSync} from 'node:child_process'; writeFileSync(${JSON.stringify(marker)},'PATH binary'); process.stdout.write(execFileSync(${JSON.stringify(real)},process.argv.slice(2),{input:readFileSync(0),maxBuffer:1<<28}));`);
+ writeFileSync(shim, `import {readFileSync,writeFileSync} from 'node:fs'; import {execFileSync} from 'node:child_process'; writeFileSync(${JSON.stringify(marker)},'PATH binary'); execFileSync(${JSON.stringify(real)},process.argv.slice(2),{stdio:['ignore','inherit','inherit']});`);
const quote = s => "'" + s.replaceAll("'", "'\"'\"'") + "'";
writeFileSync(join(windowsPath, command + '.exe'), `#!/bin/sh\nexec ${quote(process.execPath)} ${quote(shim)} \"$@\"\n`);
chmodSync(join(windowsPath, command + '.exe'), 0o755);
diff --git a/skills/anidoodle/engine/tools/sounds.mjs b/skills/anidoodle/engine/tools/sounds.mjs
index 9d5d9b5..5f16863 100644
--- a/skills/anidoodle/engine/tools/sounds.mjs
+++ b/skills/anidoodle/engine/tools/sounds.mjs
@@ -1,8 +1,10 @@
// Host-side sound packs: verify the pinned FLAC bytes, decode once, then hand PCM to the engine.
-import { readFileSync, realpathSync, existsSync } from "node:fs";
-import { resolve, sep, isAbsolute } from "node:path";
+import { readFileSync, writeFileSync, realpathSync, existsSync, mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { resolve, sep, isAbsolute, join } from "node:path";
import { createHash } from "node:crypto";
import { execFileSync } from "node:child_process";
+import { PACK_MB, soundsDeclined } from "./soundfetch.mjs";
export const soundIds = (piece) => piece.legacy ? [] : [...new Set(piece.parts.filter((p) => p.notes.length && p.opts?.sampled !== false).map((p) => typeof p.opts?.variant === "string" && p.opts.variant ? `${p.inst}.${p.opts.variant}` : p.inst))];
// Windows otherwise searches the current directory before PATH.
@@ -18,8 +20,10 @@ const decoderPath = (command) => {
}
throw new Error(`${command}: executable missing from absolute PATH directories`);
};
-// A piped child can wedge at 0% CPU with its input half read (seen live on macOS, from a worker).
-// Decoding is deterministic, so kill it after a minute and try again rather than hang the render.
+// Audio never travels through a pipe: a piped child can wedge at 0% CPU with its input half read
+// (seen live on macOS, from a worker, for hours). The verified bytes go to a private temp file and
+// the PCM comes back through another. The timeout stays as a net: decoding is deterministic, so a
+// stuck child is killed and tried again rather than hanging the render.
const runDecoder = (command, args, opts, what) => {
for (let attempt = 1; ; attempt++) {
try { return execFileSync(decoderPath(command), args, { timeout: Number(process.env.ANIDOODLE_DECODE_TIMEOUT_MS) || 60000, killSignal: "SIGKILL", ...opts }); }
@@ -34,10 +38,16 @@ const decodeFlac = (root, id, zone) => {
const file = realpathSync(resolve(root, zone.file)); if (!file.startsWith(root + sep)) throw new Error(`${id}: zone escapes pack: ${zone.file}`);
const bytes = readFileSync(file), sha = createHash("sha256").update(bytes).digest("hex");
if (typeof zone.sha256 !== "string" || sha !== zone.sha256.toLowerCase()) throw new Error(`${id}: sha256 mismatch: ${zone.file}`);
- // Count frames so ffprobe consumes the complete verified buffer rather than closing stdin early.
- const info = JSON.parse(runDecoder("ffprobe", ["-v", "error", "-f", "flac", "-i", "pipe:0", "-count_frames", "-show_streams", "-of", "json"], { input: bytes, encoding: "utf8", maxBuffer: 1 << 20 }, zone.file)).streams;
- if (info.length !== 1 || info[0].codec_name !== "flac" || Number(info[0].sample_rate) !== 48000 || Number(info[0].bits_per_raw_sample) !== 24 || info[0].channels !== zone.channels || ![1, 2].includes(zone.channels)) throw new Error(`${id}: expected 48 kHz 24-bit FLAC with ${zone.channels} channels: ${zone.file}`);
- const pcm = runDecoder("ffmpeg", ["-v", "error", "-f", "flac", "-i", "pipe:0", "-vn", "-f", "f32le", "-acodec", "pcm_f32le", "-ar", "48000", "pipe:1"], { input: bytes, maxBuffer: 1 << 28 }, zone.file);
+ // The decoders read our private copy of the hashed bytes, never the pack path, so what was verified is what plays.
+ const dir = mkdtempSync(join(tmpdir(), "anidoodle-decode-")), src = join(dir, "in.flac"), out = join(dir, "out.f32");
+ let pcm;
+ try {
+ writeFileSync(src, bytes, { mode: 0o600 });
+ const info = JSON.parse(runDecoder("ffprobe", ["-v", "error", "-f", "flac", "-i", src, "-count_frames", "-show_streams", "-of", "json"], { encoding: "utf8", maxBuffer: 1 << 20, stdio: ["ignore", "pipe", "pipe"] }, zone.file)).streams;
+ if (info.length !== 1 || info[0].codec_name !== "flac" || Number(info[0].sample_rate) !== 48000 || Number(info[0].bits_per_raw_sample) !== 24 || info[0].channels !== zone.channels || ![1, 2].includes(zone.channels)) throw new Error(`${id}: expected 48 kHz 24-bit FLAC with ${zone.channels} channels: ${zone.file}`);
+ runDecoder("ffmpeg", ["-v", "error", "-nostdin", "-y", "-f", "flac", "-i", src, "-vn", "-f", "f32le", "-acodec", "pcm_f32le", "-ar", "48000", out], { stdio: ["ignore", "ignore", "pipe"] }, zone.file);
+ pcm = readFileSync(out);
+ } finally { rmSync(dir, { recursive: true, force: true }); }
if (!Number.isInteger(zone.frames) || zone.frames < 1 || pcm.length !== zone.frames * zone.channels * 4) throw new Error(`${id}: frame count mismatch: ${zone.file}`);
const channels = Array.from({ length: zone.channels }, () => new Float32Array(zone.frames));
for (let i = 0; i < zone.frames; i++) for (let c = 0; c < zone.channels; c++) { const v = pcm.readFloatLE((i * zone.channels + c) * 4); if (!Number.isFinite(v)) throw new Error(`${id}: non-finite PCM: ${zone.file}`); channels[c][i] = v; }
@@ -77,4 +87,13 @@ export const printSounds = (M, piece) => {
}
console.log(`voices recordings: ${recorded.join(", ") || "none"}; modeled: ${modeled.join(", ") || "none"}`);
};
-export const codeBuiltNotice = () => console.log('audio: using code-built instruments; run node tools/soundfetch.mjs get all to install recordings, or set ANIDOODLE_SOUNDS=<pack-dir>');
+/** One honest line when a piece could play recordings that are not installed: what, how big, and
+ * that the user decides. Says nothing when the piece has no recorded instrument to offer. */
+export const soundsNotice = (M, pieces) => {
+ const missing = [...new Set(pieces.flatMap(soundIds))].filter((id) => { const [inst, ...v] = id.split("."); return Object.hasOwn(PACK_MB, id) && !M.bankFor(inst, v.join(".") || undefined); });
+ if (!missing.length) return false;
+ const get = `node tools/soundfetch.mjs get ${missing.join(" ")} rooms`;
+ console.log(soundsDeclined() ? `audio: using code-built instruments (recordings were declined; to install them later: ${get})`
+ : `audio: using code-built instruments. Recordings of the real instruments exist for ${missing.map((id) => `${id} (${PACK_MB[id]} MB)`).join(", ")}. ASK THE USER before downloading. Yes: ${get} No: node tools/soundfetch.mjs decline`);
+ return true;
+};
diff --git a/skills/anidoodle/references/music/README.md b/skills/anidoodle/references/music/README.md
index c1cbf5b..5f73446 100644
--- a/skills/anidoodle/references/music/README.md
+++ b/skills/anidoodle/references/music/README.md
@@ -130,12 +130,21 @@ Without it every score still plays, on the modelled voices, unchanged.
```bash
node tools/soundfetch.mjs list # the install directory and what is installed; no network
-node tools/soundfetch.mjs get all # the one command that downloads: hash, unpack, install
+node tools/soundfetch.mjs get harp rooms # the one command that downloads: hash, unpack, install (`all` = 373 MB)
+node tools/soundfetch.mjs decline # the user said no: remembered, nobody is asked again
node tools/soundfetch.mjs where # the install directory
node tools/soundfetch.mjs verify # re-hash every installed file
node tools/soundfetch.mjs remove <id> # drop one instrument, or `rooms`
```
+**The user decides, once.** Before the first score of a session, run `list`. When nothing is
+installed and it does not say the recordings were declined, ask the user in plain words whether
+they want real recorded instruments, and name the size: the whole pack is 373 MB, the grand piano
+alone 233 MB, and one piece usually needs one instrument plus `rooms` (0.4 MB). Yes: `get` those
+ids. No: `decline`, which is remembered across sessions. Never download without that answer.
+`music.mjs` and the film tools print the same offer, with the ids and sizes the piece in hand
+needs, whenever a part falls back to a code-built voice.
+
`get` names the ids it wants, or `all`. It installs to `ANIDOODLE_SOUNDS`, or
`~/.anidoodle/sounds`, and refuses any archive whose size or sha256 disagrees with the index
before it unpacks. `ANIDOODLE_SOUNDS_URL` points the fetch at a different release; point it at a