Skip to content

Voice generation plan: second worker on the ACE protocol, Chatterbox first - #29

Merged
ninjudd merged 3 commits into
mainfrom
feat/voice-generation
Aug 6, 2026
Merged

ninjudd merged 3 commits into
mainfrom
feat/voice-generation

Conversation

@ninjudd

@ninjudd ninjudd commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Docs-only: the plan for voice generation, recording the design from our discussions before the worker gets built — merging this is the design sign-off for chunk 1.

The decisions (voice-generation.md):

  1. A generation workflow, not a build rule — model inference isn't reproducible across GPU/framework versions, so outputs commit with recipes (the ACE pattern); say stays the hermetic scratch tier. The determinism boundary we recorded with say build rule: macOS text-to-speech as a recipe #27, now with both sides built.
  2. Local-first: Chatterbox / Qwen3-TTS / CosyVoice 3 sit within ~80 ELO of ElevenLabs; ElevenLabs is at most a future optional keyed backend.
  3. A voice is a committed reference asset (~3–10 s recording, content-hashed in the recipe) — better provenance than a vendor voice ID, and "sing it in my voice" becomes a recording, not an integration.
  4. A second worker, bloom-voiced, on the established protocol — ace-generation.md built the worker protocol so ACE would be "the first client, not a special case"; voice is the second client, its own process for independent model memory and lifecycle. (New call, flagging for review.)
  5. Chatterbox first — MIT, zero-shot cloning, MPS-capable; other models are backends behind the same job spec.
  6. Recipes reuse the generation schema (optional text/voice_ref fields) so variants, hashes, chosen, and promotion tooling work unchanged. (New call, flagging for review.)

Chunks: (1) worker + CLI + schema + tests; (2) field — record/pick a reference voice (the one open question that's genuinely yours), generate creek's line, choose, clip.

Also: now.md swaps the shipped say line for this project; next.md's voice-generation entry graduates into the plan.


Note

Low Risk
Documentation and project-tracking only; no runtime, schema, or worker code changes in this PR.

Overview
Docs-only design sign-off for voice generation before chunk 1 implementation.

Adds docs/projects/all/voice-generation.md, recording six decisions: generation workflow (ACE-style committed recipes, not a hermetic build rule), local-first open models with Chatterbox first, voices as content-hashed reference assets, a separate bloom-voiced worker on the existing NDJSON daemon protocol (not another model inside bloom-aced), and extending the existing generation/*.yaml schema with optional text / voice_ref rather than a parallel recipe kind. Defines done for creek’s lead vocal, two implementation chunks (worker + CLI + schema vs field recording/choose/clip), and open questions on reference voice and CLI naming.

Project list churn: now.md replaces the shipped say build rule line with an in-flight voice generation entry; next.md drops the one-line voice generation teaser now that the full plan exists.

Reviewed by Cursor Bugbot for commit a8d267f. Configure here.

ninjudd added 2 commits August 5, 2026 21:29
…first

Records the design before the build: a generation workflow, not a rule
(model inference is not cross-machine reproducible, so outputs commit
with recipes — the say rule stays the hermetic scratch tier);
local-first with Chatterbox behind a new bloom-voiced worker speaking
the protocol ace-generation.md deliberately built for a second client;
a voice is a committed 3-10s reference asset, not a vendor voice ID;
recipes reuse the generation schema so variants and choose work
unchanged. now.md/next.md updated; say's now-line retires (shipped,
exercised bit-identical in field).
…later.md

Status line says so plainly; now.md drops the line, later.md gains it
with the plan linked. The design sign-off value of merging is unchanged.
@ninjudd

ninjudd commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Updated per our discussion: voice generation is deliberately deferred — the status line now says so, and the list line moved now.md → later.md with the plan linked. Merging still records the settled design; nothing gets built until it comes back off the shelf.

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at head a8d267f (in place). Docs-only, CI green. One P3 on the plan text (decision 6 leaves the schema morph underspecified in exactly the way that has bitten before), inline. The two new calls flagged for review are both right, and I'll say why rather than just bless them:

  • Second worker, not second model in bloom-aced: correct for the stated reason and one more — the workers' idle-exit clocks are independent, so a long ACE generation can't pin a multi-GB voice model in memory (or vice versa), and a wedged worker takes down only its own model family. This is also the payoff moment for ace-generation.md's "first client, not a special case" — the protocol earning its second client unchanged is the proof that design was real.
  • Recipes reuse the generation shape: right, and it has a consequence worth naming as a feature — bloom ace choose already promotes any recipe in generation/, so voice variants get promotion, drift-refusal, and chosen for free on day one. (It also means the ace in that command is already a misnomer-in-waiting — fold that into §4's CLI-seam question alongside bloom voice generate vs bloom generate.)

Checked against the repo record:

  • The determinism-boundary story is consistent across this plan, build-graph.md (both sides now recorded, as claimed), the #27 schema comment, and the graduated next.md entry — no drift between any of the four tellings.
  • List hygiene is exactly the discipline: next.md's teaser graduates into the plan, now.md swaps the shipped say line for the linked in-flight entry, and the plan file carries a dated status line.
  • Both relative links resolve; the new file appends cleanly, nothing renumbered.
  • Housekeeping note: the #27 footnote about Siri cache staleness did land in build-graph.md via the schema-split PR ("the cache does not watch Settings…") — confirming so the trail shows it wasn't dropped.
  • The Chatterbox characterization (MIT, zero-shot cloning from a short reference, expressiveness control) matches what I know of it; the ~80-ELO arena claim I can't verify from here and treat as your recorded research, which is fine for a plan rationale — it motivates local-first, it doesn't gate anything.

Merging this is the design sign-off, so the P3 is worth settling in-text first — it's a sentence or two.

Comment thread docs/projects/all/voice-generation.md Resolved

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addendum for e6edc70 (the deferral), which landed as the previous review posted. No findings on it — the deferral is done by the book: the status line says "Planned, deferred" plainly with the date, now.md drops the line, later.md gains it with the plan linked, and the lists agree. This is exactly what the AGENTS.md warning about stale status lines wants — a plan honestly marked dormant instead of quietly aging in "In progress."

One carry-forward: the P3 on decision 6 (the schema morph's subtractions — required prompt/duration_seconds vs the promised optional text/voice_ref) applies more now, not less. A gap in an active plan gets caught by the implementer next week; a gap in a deferred plan waits until whoever picks this up months from now, with cold context, and "work unchanged" reading as settled. The sentence or two settling it (or explicitly delegating it to chunk 1) is cheapest right now, while the reasoning is fresh — worth folding in before the merge that signs the design off.

…-seam question (#29 review P3)

Decision 6 now settles what loosens: prompt becomes optional behind a
refine requiring exactly one of prompt or text (the clip source
precedent — no chimera recipes); duration_seconds becomes optional and
voice recipes omit it; bpm/bars/lyrics stay music-only and voice_ref
voice-only under the same kind split. §4 notes schema reuse makes
bloom ace choose promote voice recipes on day one, so the seam decision
covers choose too.
@ninjudd
ninjudd merged commit b453cd9 into main Aug 6, 2026
1 check passed
ninjudd added a commit that referenced this pull request Aug 6, 2026
Docs-only: the decision record from today's layout discussion
([project-layout.md](docs/projects/all/project-layout.md)). Merging
signs off the design; the migration is queued in next.md as its own
work.

The seven decisions, one line each:

1. **`shared/` = instruments / generators / samples / plugins**, split
by contract; `loops/` dissolves into `samples/` because looping is a
clip placement property — amends #25, which had conflated a render
program's role with its output's role.
2. **One generator category, two trigger policies** — automatic
(deterministic: sc-render, say; machine-triggered, cached) vs deliberate
(ACE, voice; human-triggered, committed variants + choose). Determinism
is the *qualification* for automatic re-run, not a filing principle: no
separate homes.
3. **Authored specs get a file each** — `targets/<name>.yaml`,
`mixes/<name>.yaml` (the list-file was an imported Bazel-ism); **ledgers
stay tables** (`assets.yaml`). Labels unchanged.
4. **`generation/` dissolves**: recipes are deliberate targets in
`targets/`; variants live in `audio/<target>/`; follow-on, clips
reference the target and `choose` repoints it.
5. **`audio/` is all committed sound** (recorded/imported/generated);
samples-vs-audio is *enforced visibility* — promotion to shared on
actual reuse, cheap by content addressing.
6. **One ledger per scope**: `shared/assets.yaml` mirrors the song
ledger; every file pinned once; the ledger pins committed audio only —
*programs are keyed, not pinned* (git is code's integrity story).
7. **The `ace` prefix retires**: `bloom generate` / `bloom choose`,
answering voice-generation.md §4's seam question.

Also: project-core §3.4 gains an amendment note (grammar unchanged, spec
files per-file), project-model.md carries a decided-not-migrated pointer
so its tree diagram isn't read as final, and the migration entry in
next.md includes the demo shared sample in field that forces the
cross-scope reference spelling to be decided rather than deferred.

Heads-up: this will need a trivial list-file rebase against #29 (both
touch next.md) — whichever merges second, I'll handle it.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation and planning only; runtime behavior and project layout
in code/field are unchanged until the queued migration.
> 
> **Overview**
> **Docs-only decision record** for the 2026-08-06 project layout
revision. No loader, CLI, or field migration in this PR—implementation
is queued separately in `next.md`.
> 
> Adds **`project-layout.md`** with seven **DECIDED** rules: four-shelf
`shared/` (instruments / generators / samples / plugins; `loops/` merges
into `samples` because looping is clip-owned); one generator category
with automatic vs deliberate trigger policies (not separate homes);
per-file `targets/` and `mixes/` while `assets.yaml` stays a ledger
table; `generation/` dissolving into deliberate targets plus
`audio/<target>/` variants; song `audio/` as all committed sound with
enforced visibility vs `shared/`; mirrored `shared/assets.yaml` (pins
committed audio only—programs keyed, not pinned); retiring the `ace` CLI
prefix for `bloom generate` / `bloom choose`. The doc also sketches
migration chunks and leaves cross-scope clip reference spelling and
variant filenames for the migration work.
> 
> **Pointers elsewhere:** `project-model.md` warns the tree diagram
still reflects *today’s* layout until migration; `project-core.md` §3.4
notes per-file targets/mixes for label derivation (grammar unchanged);
`next.md` adds the layout migration line.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
bc1f813. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@ninjudd
ninjudd deleted the feat/voice-generation branch September 28, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant