# Orpheus re-tune and re-run, by the operator alone
Status: **planned 15 Nov 2026; S1 done (merged 2dff0a631, shipped 16 Nov 2026); S3 done (`lane/line-rerun`,
merged 17 Nov 2026; S3b, re-read one sentence, is a follow-up after S4); S2 done (`lane/character-tuning`,
merged 17 Nov 2026); S4 done (`lane/reads-find`, merged and shipped 17 Nov 2026, with the shared project walk it needed). All four slices are live; S3b is the one follow-up, if wanted.** Written to be picked up cold (after a usage reset).
## The ask (operator, 15 Nov 2026)
> Stick with Orpheus, but make it much easier to re-tune and re-run in different ways in either the
> character or clip editor without having to ask an AI agent, letting me re-type a message (and maybe
> find/replace over the whole video?) and re-run with a button to re-listen.
Chatterbox was considered and set aside: Orpheus stays the synthetic engine. The work is UI and plumbing,
not a new model.
## What exists today (verified 15 Nov against main 976efc77e)
- **Engine.** `scripts/tts_orpheus.py` renders chunks on llama-server (Vulkan) and SNAC; per chunk up to
`takes` seeded takes, the first that passes its checks is kept. Its `input.json` ALREADY carries
`sampler`, `seedBase`, `takes`, `tagCheck`. Stock voices only (`tara leah jess leo dan mia zac zoe`), no
reference-audio path, and there must never be one.
- **The knobs are constants.** `common/lib/ttsApps.ts`: `ORPHEUS_SAMPLER` (temperature 0.55, top_p 0.85,
top_k 50, min_p 0, repeat_penalty 1.2, repeat_last_n 64; the operator's pick by ear on 12 Oct 2026) and
`ORPHEUS_SEED_BASE = 1234`. Settings carry only `tts.orpheus.takes` / `tagCheck` (and `speed`, which
Orpheus ignores). The cache key's `keyExtra` holds takes and tagCheck, not the sampler or the seed.
- **Consequence:** the same text in the same voice comes back as the same cached file. Today a different
reading of a line can only be got by changing the words or by an agent changing code or settings. That
is the gap.
- **The TTS op.** `editor/app/api/ops/tts/route.ts`: `POST { text | file, voice?, engine?, speed?, out? }`
→ a `tts-file` job (`common/controller/ttsFile.ts`), cached, queued on the `tts` lane.
- **Where Orpheus reads are made in umtool:**
- the post bench's narration panel (`umtool/components/projects/PostNarrationPanel.tsx`, route
`app/api/report/post-narration`): an editable script textarea + **Save script**, **Re-take with
direction** (`op: "take"` with note, voice, engine, speed, script), a take tree (synthesized, recorded,
derived), a pick;
- screen lines (`ScreenLineVoice.tsx`, "Make the read" = `umtool posts screen
- read`);
- card narration (`report-to-video/narration.mjs`, `narrate-via-editor.mjs`);
- thread reads (`lib/report/postThreadRead.mjs`);
- the Voices page (`VoicesPanel.tsx`): an audition of candidate voices side by side, **Use this voice**;
- character presets (`CharacterPresets.tsx`; CLI `umtool cast set`, `umtool cast project …`): the
SYNTHETIC preset is a stock voice and its speed only.
- **Pronunciation** already exists: the lexicon `umtool posts say` and the voice map `umtool posts voices`
(`PronunciationPanel.tsx`), with "try it" and a list of picked reads that still say an entry the old way.
"Character or clip editor" = the character presets / Voices page and **the post bench** (operator,
15 Nov). The `/projects/
/clips` clip editor is out of scope.
## Operator rulings (15 Nov 2026), binding on every slice
1. **Scope:** the post bench (and the character presets). Not the `/clips` clip editor.
2. **Tunings:** both the named starting points AND the bare numbers.
3. **Every edit is for READING only.** Re-typing a line, find/replace, a pronunciation entry exist to
change what the voice says: an acronym spelled out, a delivery change (tags, punctuation), a typo
corrected in speech. **The original text is always what is shown on screen**: a post card, a screen
line, a thread tile, a caption. No slice may change displayed text, and a test in each lane pins it
(edit the read → the card's drawn text is byte-identical).
- Consequence to verify in S1's design note: every read needs a SPOKEN text kept apart from its SHOWN
text. A post's `narration.script` is already separate from the post's own text (check that the card
draws from the post, never from the script). A screen line's read is drawn from the screen's lines,
so a screen line needs its own "said as" override (e.g. `saidAs.`), defaulting to the shown line.
A card's `narration.text` is already spoken-only. Thread reads: check.
- The "a read may not say what a screen masks" refusal still applies to the spoken text.
4. **Re-reading only on a press.** A stale read is listed and offered, never re-made by itself.
## What to build: four slices, each one lane
### S1. The engine takes a tuning and a seed (`lane/orpheus-tuning`; plumbing, no UI)
**Done** — merged 2dff0a631, shipped 16 Nov 2026.
- A synthesis may carry `tuning: { temperature?, top_p?, top_k?, min_p?, repeat_penalty?, takes? }` and
`reading?: integer` (ruled 16 Nov: ONE word end to end — the ops body, the result, the sidecar, the cache
key, a card's `narration.reading`, a post take's `reading`, the CLI's `--reading N`; "variant" already
means a cut and a forked take in umtool). The seed base is `ORPHEUS_SEED_BASE + 9973 × reading`; there is
no explicit `seed`. Ranges (`common/lib/ttsTuning.mjs`): temperature 0.1–1.5, top_p 0.05–1, top_k 0–200
(whole), min_p 0–0.5, repeat_penalty 1–2, takes 1–6 (whole), reading 0–99,999 (whole); each refused in a
sentence naming the field and its range. A missing value falls back to `ORPHEUS_SAMPLER` and
`tts.orpheus.takes` (no new setting), so **an ask without them is byte-identical to today's, cache hit
included**; a tuning equal to the defaults and reading 0 normalise to none (pinned against main's sha and
input.json literally).
- Tuning and reading go INTO the cache key only when non-default (no CACHE_KEY_VERSION bump): the same ask
again is still free; "another reading" is a new key.
The key holds only what DIFFERS from the code's defaults, so **changing `ORPHEUS_SAMPLER` (or
`ORPHEUS_SEED_BASE`) needs a `CACHE_KEY_VERSION` bump**, or untuned asks keep hitting files made with the
old values (a pre-existing property, not changed by S1). Decimal values are quantised to 3 places (-0 is 0)
before they are checked, normalised and keyed.
- The result JSON, the cache sidecar and a post take's record say the effective tuning, the reading and the
seed base, so a reading can be made again exactly, and its numbers can be copied into a character.
- Through every layer: `ttsApps.ts` → `ttsFile.ts` → `scripts/tts.mjs` → `tts_orpheus.py` (already reads
them from input.json), the ops route, `pnpm ops tts`, `narrate-via-editor.mjs`, the post-narration
`take` op and `umtool posts narrate - --take [--reading N] [--temperature t] [--top-p p]
[--top-k k] [--min-p m] [--repeat-penalty r] [--chunk-takes n]` (refused with `--thread` / `--all` in S1).
Kokoro and eSpeak NG ignore a tuning and say so (a note, not an error).
- Docs: COMMANDS.md and umtool's docs/cli.md regenerated.
### S2. A character carries its tuning (`lane/character-tuning`; UI on the character preset + Voices page)
- The SYNTHETIC preset gains an Orpheus tuning: temperature, top_p, repeat penalty, takes. It is shown as
three named starting points plus the numbers under "Adjust": **Steady** (cooler; the default's
neighbour), **Default** (`ORPHEUS_SAMPLER`), **Lively** (warmer). The names and values are the
implementer's proposal for the operator to judge by ear; the numbers are always visible and editable.
- **Try it, in the preset:** a text box (prefilled with a line this character actually reads in the
project, or any line typed), **Read it** → a job → plays when done; **Another reading** = the same text
and tuning, the next reading (`reading` + 1); every audition stays in a short list (text, tuning, reading, Play), so
two readings can be compared at one loudness (reuse the Voices page's audition player and its
loudness match).
- **Keep these settings** saves the tuning to the character (the cast's, or this video's own), through
the CLI's own command: `umtool cast set --temperature … --top-p … --repeat-penalty …
--takes …` (and the `cast project` twin). A kept reading's number may be kept too ("use this voice's
reading as the character's sample").
- Changing a character's tuning makes its existing reads stale, not re-made: the bench lists "N reads by
this character were made with other settings · Re-read them" (one button, S4's queue).
### S3. Re-type and re-run a line where it is read (`lane/line-rerun`; post bench, screen lines, card narration)
**In progress** (17 Nov 2026). S3b (re-read one sentence) is a follow-up, not in this lane.
- For every synthesized read (a post's script, a screen line, a card's narration, a thread read): the
text is editable in place; the buttons are
- **Read again**: the same text, the next reading (`reading` + 1, not the cache);
- **Read edited text**: saves the text (the draft, as Save script does now) and reads it;
- **Tune ▾**: this line's own tuning, prefilled from the character; "use for this line only" or
"keep for the character" (→ S2's command).
- When the job ends the new take **plays by itself** (a toggle, on by default) and joins the take list
with its text, tuning and reading; **Pick** makes it the one the cut plays. The previous pick stays one
press away (no reading is ever deleted by re-running).
- **One sentence only (S3b, optional within the lane or a follow-up):** a take's `parts` already carry
each sentence's file, start and length. **Re-read this sentence** makes a new reading of one part and
joins it into a new take with the others unchanged (the same join and fades as `tts_orpheus.py`), so a
single flubbed sentence does not cost the good ones.
- Recording is untouched: a recorded take, its enhance and convert chain, and the operator's
`*.recorded-operator.*` files are not changed by any of this.
#### Findings from S1 (16 Nov): where each read's spoken and shown text live
Paths under `umtool/`, line numbers at main 976efc77e. **No drawn character ever comes from spoken text** —
but for a post's script and a thread read the spoken text steers the LAYOUT, so S3's "byte-identical card"
test must pin the drawn structure (blocks, hidden paragraphs, tile modes), not only the characters.
- **A post's script.** Spoken: `narration.script` → `spokenRead` (lib/report/postNarrationCli.mjs:356,
379–381; app/api/report/post-narration/route.ts:302, 325; report-to-video/post-redact.mjs:389–418: anon
names, lexicon, redaction, slurs); the take keeps `script` and, when an anonymous handle changed it, `said`
(postNarrationCli.mjs:417–429). Shown: `cardText(entry)` = `entry.text` (report-to-video/post-item.mjs:111–114),
drawn by `wordsHtml` (:1141) in `postCardHtml` (:1372 plain card, :1461 thread tile) after `redactEntry` (:1301).
**Layout coupling:** read-follow `followParts` builds its blocks from the picked take's `parts[].text`, else
`take.script`, else `narration.script` (report-to-video/read-follow.mjs:203–213); `followBlocks` (:227–283)
matches them to the card's words and wraps them as `data-post-block` (post-item.mjs:1159) — the lit/dim
highlight and the pan. In an excerpt thread tile, blocks no part reads are `display:none`
(post-item.mjs:1385, 1428, 1447, 1496), so an edited script can HIDE drawn paragraphs. `partRoles` falls
back to the script (report-to-video/post-thread.mjs:221–223) and `threadLayout` uses the roles for tile
modes, quoted above/inside and which screens are drawn (:296–298, 319–353, 368); the script counts as a
form of the "post" text when roles are matched (:167). Captions: the chip text is `fx.text`
(post-caption.mjs:9), matched against the card text (:74, :165); only its timing comes from `take.words`
(:131–135) or a script estimate (:137–147).
- **A screen line.** Stored: `timeline[i].screens[j].lines[n].text`, with `read` (all / none / spans),
`who`, `lineTakes` (report-to-video/post-screens.mjs:13–16). Spoken AND shown come from the same `viewOf`
span: `said` and `shown: cut` (post-screens.mjs:264–266) → `screenLineSaid` (:287), `screenPieces`
(:610–617), `chronoPieces` (post-thread.mjs:1343), `draftScript` + `spokenRead`
(lib/report/postThreadRead.mjs:234–235); `lineToRecord` the same (lib/report/screenLineRecord.mjs:60–64);
drawn by `screenRows` (:342) → `screenTileHtml` (:683–740). **There is no per-line "said as" override
today** — only the lexicon (`red.say`, item-scopable; post-redact.mjs:235–236, 397–399), applied to speech
only. Editing `lines[n].text` changes both sides, and the old take is then refused (`screenLineChanged`,
post-thread.mjs:710–727, :573). **S3 needs `saidAs.`**, defaulting to the shown line.
- **A card's narration.** Spoken only: `narration.text` (report-to-video/narration.mjs:88, 101–110;
`narrationsOf` :125–131). Never drawn: render-cards.mjs never reads it; `buildNarratedCardSegment`
(build-video.mjs:2949–2969) uses only its measured seconds (:2956, 7255–7257); burned captions come from
the clip transcript (build-video.mjs:2193–2206, `lookWordsFor` :2276–2280); the disclosure line
(narration.mjs:319–343) goes to the description. Editing it changes only the card's length.
- **A thread read.** Spoken pieces: `chronoPieces` (post-thread.mjs:1330–1345) — parents and quoted posts
their `contextText` (the paraphrase, else the text; post-item.mjs:224–226), linked posts `contextText` +
transcript, his post `narration.script` else `draftScript(cardText)` (postThreadRead.mjs:180–181, 268),
screens their lines; each through `spokenRead` (:273), parts storing the spoken text (:401–403). An
attachment is never read by itself ("media:" is only inferred when a part matches no card text,
post-thread.mjs:259–260). Shown: the tiles draw the same `contextText` / `cardText` (post-item.mjs:1420–1438
parents/linked, :1449 quoted, :1455–1461 post, :1484–1490 screens). Same structural coupling as a post's
script (parts drive blocks, excerpt hiding and inferred roles).
- **"A read may not say what a screen masks"** lives in post-thread.mjs, not post-redact.mjs:
`readSaysHiddenErrors` (:624–660) checks `take.parts[].text`, else `take.said || take.script` (:647), against
the screens' `shapeSpans` (:640–643) and lines marked `redact`; `screenPartErrors` (:577–579); both gathered
in `itemReadRefusals` (:599–609), called by lib/report/postScreensCli.mjs:260 and the build's lint (:588).
It already judges the SPOKEN text.
- **Surprise:** when a read is refused, `playableAsWritten` drops `narration` (post-thread.mjs:695–699), so
the item previews un-narrated and un-threaded and its drawn layout changes — a bad spoken edit on an item
with screens changes the preview.
### S4. Find and replace over the whole video, and the re-read queue (`lane/reads-find`)
**Built** (17 Nov 2026, in review): the Reads page `/projects/
/reads`, `umtool reads`, `lib/report/reads.mjs` (the
one read model), `readsReplace.mjs`, `readsQueue.mjs` (the durable queue), `readAgainArgv.mjs`; umtool/docs/knobs.md,
"The reads of a video". The orchestrator's rulings for it: a queue re-read joins unpicked (Listen through's Pick);
a plain press passes back only what the LINE owned (`tuningOwn`), so a re-read comes back fresh; the queue's read of a
post is the bench's ask (one module, the slur rule included).
- A **Reads** view per project (a tab of the workspace, or a section of the Voices page; implementer
proposes): every line a synthetic voice reads in the cut (posts, screen lines, cards, thread reads),
with its character, its picked take, and whether that take still matches its text and tuning
(`fresh` / `stale`).
- **Find** (plain text, case on/off, whole word) highlights matches across all of them, with a count.
**Replace** never touches shown text (ruling 3). It offers two scopes and says which it does:
1. **These reads**: rewrites the SPOKEN text of the matched lines (scripts, screen lines' "said as",
card narration), as one undoable draft step, shown as a preview list first;
2. **Everywhere, from now on**: adds a pronunciation entry (the existing `umtool posts say`), so every
read, present and future, says it that way.
- After either, the reads that changed are `stale`; **Re-read N changed lines** queues them (paced on the
editor's `tts` lane, one job each, or one batch job; GPU arbiter rules as now) and the view fills in
as each one lands.
- **Listen through:** a player that plays the re-read lines one after another (each with its old take
one press away), and "play in the cut" (the Play-the-cut view at that item), so re-listening needs no
render.
- CLI twin: `umtool reads
[--find ] [--stale]`, `umtool reads replace
[--say-only] [--dry-run]`, `umtool reads reread [--stale] [--wait]`, all `--json`.
## Rules for this work (from AGENTS.md and the standing rulings)
- Stock voices only; no reference audio; the disclosure line on every synthesized read stays.
- **Works with no model:** every button is a form and a job; nothing asks an agent or an LLM.
- Every write goes through a umtool command (the CLI twin) and lands in the working draft, as the
bench's writes do now; no hand-edited manifest, take json or notes.json.
- Synthesis is the EDITOR's (`tts-file` jobs on the `tts` lane); umtool never runs Orpheus itself.
Render mode holds that lane, so a re-read waits during a render, and the view must say so.
- Orpheus is heavy (llama-server, `heavyEstimateMB` 4000): a batch re-read is one queue, never a burst
of parallel servers.
- Each lane: design note first → Opus implementer → gates (typecheck, touched unit suites, docs checks,
the lane's umtool e2e spec alone via `pnpm --filter umtool run e2e `) → independent read-only
review → fixes by the same implementer → merge → post-merge suites → **ask the operator before
restarting umtool** (he records narration in it) → ship → smoke.
- No real people's or channels' names in code, fixtures or docs; fixtures only in tests.
## Order
S1 first (everything else needs a seed and a tuning to vary). Then S3 (the button he asked for most
directly), then S2, then S4. S2 and S3 can run as two lanes side by side after S1 merges, since they touch
different components. The machine allows two lanes at most.
## Questions for the operator
All four answered 15 Nov (see "Operator rulings" above). None is open.
## Done means
- From the post bench, a line can be re-typed, re-read with a new reading or a new tuning, heard on
arrival, and picked, with no agent.
- A character's tuning can be auditioned and kept from its preset.
- A word can be found across every read of a video, replaced (words or pronunciation), the changed lines
re-read in one press and listened through.
- Asks with no tuning and no reading still produce byte-identical audio and cache hits.
- No edit to a read ever changes what is shown on screen.