commit 77157a37a5b80a7f8a5742dc0a707c457b9900c3
parent e39a3216b0877232d907121210f3d7ff83e6b6e1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 6 Nov 2026 22:15:53 -0500
umtool: the cast documented (knobs.md "The cast", cli.md rows, the changelog); the Voices page marks the closest candidate only when one is closer, says "All rendered" with nothing to score; the e2e names the real voice as the cast finds it
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
6 files changed, 82 insertions(+), 16 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **umtool: each character has a voice, auditioned on a page, the same in every project.** The operator wanted to "pick different voices for different characters, and in UI alone be able to try rendering different ones to compare … and try to maintain consistent voices for different repeating characters" -- tonight TheQuartering's reads were re-voiced by hand after scoring five voices against his real one. `/projects/<p>/voices` (from the Cut tab's Reads and voices) lists every character a project's reads use, the voice each reads in now and where it comes from (the cast, the project, the narrator's, the default), its reads in another voice, and its real voice. **Audition** reads one line (its own words here, a stock line, or typed) in 2-6 stock voices -- a job: the editor's tts, then each one's closeness to the real voice (speakers.json, TitaNet, local) -- played side by side at one loudness beside the real voice, a reference never a target. **Use for this project** or **Use everywhere** (the cast, `<reports>/.umtool/cast.json`), then the items to re-read, queued. A recording of an item can be made a character's read: kept, cleaned, converted to its stock voice. Every read -- a single post's and each piece of a thread read -- asks the same order (the read's own, the project's map, the cast, the narrator's, the default), and a cast voice of another engine is synthesized by it. `umtool cast ls|add|set|rm|undo|project|audition|use|reread`, `posts narrate … --recording`, and `umtool lint` warns when a cast character is read in another voice.
- **umtool: a counter series nobody counted shows 0, and a text card can count.** The Leaflit side-tally video has no title or totals cards, so the deck's counter is the only place the counts show, and it left out "Left" (the point of the video: she never once says she is on the left) because the tally drew only the series some mark used. A series of `deck.counter` that says `showAt: "always"` (its own, or the counter's) is now a cell from the first frame, dim at 0, whether or not anything counts it; a series that says nothing (so a counter `umtool migrate` wrote draws what it drew), a `first` series, and the fact-check verdicts' tally of a cut without a `deck.counter` are as before, and a cut that counts nothing still draws no counter. Her two X posts are text cards (`teaser`s), which could not carry a mark, so they did not step the count. A teaser now takes marks as a clip does (`umtool set <p> x-d28 mark.add=CENTER@2.15`, the second counted from the card's start; validated, stamped over the card, counted, in Play and the On-screen table), and a teaser that carries one keeps the deck up over it, with no title of its own, so the count is seen to step. A teaser that dips still hides the deck at the black.
- **Free disk, weekly, with one command: `archilyzer housekeeping`.** On 6 Nov /home was at 37 GB free, and a session freed 83 GB by hand. The operator: "We should build a regularly run command for this after we're done." It runs three passes of the apps' own commands. **Superseded takes:** `umtool prune --versions` deletes whole takes through `umtool takes delete`. Per version line it keeps the highest built number; the line is the take id with its digits folded (`draft-3` and `draft-4`), and a letter is never folded (`v6c` is not `v6d`, `release-6u` is not `release-6`). An older take goes only once the newer one is 7 days old (`--grace`). It also keeps any take picked, pinned, given any verdict, rendering, a build's base, the manifest's, with operator notes on it, or refused by `takes delete`, and skips a project whose verdicts file cannot be read. **Work files:** every project's takes' work files by its prune policy; in a project idle 3 days, the newest and picked takes' work goes too (`--idle-work`). **Worktrees:** `pnpm wt prune` removes merged, clean, idle worktrees with no process in them and no ignored files of anyone's (a corpus, an env file, a changed settings file, a nested repository), keeping their branches. A project or worktree touched in the last 3 days is left alone, and a run is skipped while a render, an e2e suite or a heavy job runs, or when that cannot be checked. Each run is recorded in `~/.local/state/archilyzer/housekeeping.json`. **Worktree ports no longer move:** a worktree's port block is recorded when it is added, so removing another worktree cannot shift a running suite's ports. **Upgrading:** `archilyzer service install` (host mode) now also installs `archilyzer-housekeeping.timer`, weekly; `--dry-run` shows it first, and `--no-housekeeping` leaves it out. OPERATING.md, "Free disk".
- **Sync new and Resume backfill are separate actions for an X or Bluesky channel.** A fetch meant to get new posts could walk old history instead. If an account's full-history walk had stopped part-way, the next plain fetch, from Sync or the schedule too, resumed that walk and skipped the newest posts. On 6 Nov one such fetch read 100 posts the archive already held, stopped as "caught up" with 0 new, and missed 85 newer posts. It then cleared the walk's saved place, so the place was lost as well. The operator: "We should have distinct 'sync new' and 'resume backfill' actions, they are different actions for different purposes". **Sync new** (the channel page's first button; a plain `fetch-posts`, Sync and the scheduler) now always reads from the newest post down to the newest one archived, and never moves or clears the backfill's place. A sync that stops part-way keeps its own place and finishes on the next sync. **Resume backfill** (the button, shown only when a full-history walk is unfinished; `pnpm ops resume-backfill`, or `fetch-posts "backfill": true`; `--backfill` on `archilyzer posts fetch`; `backfill` on the MCP enqueue tool) continues that walk and does nothing else. When one is unfinished, the channel page says so: "backfill unfinished — N archived; Resume backfill continues it". The job log's first line names the mode. Resume backfill is refused when no walk is unfinished, and on a forum thread, which already reads its newest pages before its history. An X search channel has one walk and refuses it too. Re-fetch full history and Fetch older posts are unchanged. **Upgrading:** a `posts-state.json` from before this keeps one `cursor`. It is read as the unfinished backfill's place, so nothing is lost, and the next fetch rewrites it. Needs a restart of the editor.
diff --git a/umtool/components/projects/VoicesPanel.tsx b/umtool/components/projects/VoicesPanel.tsx
@@ -225,7 +225,9 @@ export default function VoicesPanel({ project, posts, initialWho = null }: { pro
const cell = "border-t border-seam px-2 py-1 align-top";
const running = job?.state === "running" || (!!view.running && !job);
const engine = view.engines.find((e) => e.id === addEngine) ?? view.engines[0];
- const best = Math.max(...(audition?.candidates ?? []).map((c) => (typeof c.score === "number" ? c.score : -Infinity)));
+ // The closest candidate, marked only when one is closer than the rest (a tie marks none).
+ const scored = (audition?.candidates ?? []).map((c) => c.score).filter((x): x is number => typeof x === "number").sort((a, b) => b - a);
+ const best = scored.length > 1 && scored[0] > scored[1] ? scored[0] : null;
const missing = (audition?.candidates ?? []).filter((c) => !c.cached).length;
const heavy = (audition?.candidates ?? []).some((c) => !c.cached && c.weight === "heavy");
@@ -395,8 +397,8 @@ export default function VoicesPanel({ project, posts, initialWho = null }: { pro
<span className="text-[11px] text-muted">2–6 · Kokoro first: Orpheus pins ~8.5 GB and waits its turn</span>
</div>
<div className="mt-2 flex flex-wrap items-center gap-2">
- <button type="button" data-audition-render="" disabled={busy || running || !candidates.length || lineQuery === null} onClick={() => void render()} className={buttonVariants({ variant: "go", size: "sm" })}>
- {running ? "Rendering…" : missing ? `Render ${missing} candidate${missing === 1 ? "" : "s"}` : "Score again"}
+ <button type="button" data-audition-render="" disabled={busy || running || !candidates.length || lineQuery === null || (!missing && !!audition && !audition.speaker)} onClick={() => void render()} className={buttonVariants({ variant: "go", size: "sm" })}>
+ {running ? "Rendering…" : missing ? `Render ${missing} candidate${missing === 1 ? "" : "s"}` : audition?.speaker ? "Score again" : "All rendered"}
</button>
{heavy && <span className="text-[11px] text-doubt-text">an Orpheus candidate: the editor runs it through its heavy slot, after a render you are waiting for</span>}
{job && (
@@ -423,7 +425,7 @@ export default function VoicesPanel({ project, posts, initialWho = null }: { pro
</div>
)}
{audition.candidates.map((c) => {
- const top = typeof c.score === "number" && c.score === best && audition.candidates.filter((x) => typeof x.score === "number").length > 1;
+ const top = best !== null && c.score === best;
return (
<div key={c.key} className={cn("rounded-[4px] border p-2", top ? "border-signal" : "border-seam-2")} data-audition-result={c.spec} data-audition-state={c.cached ? "ready" : "missing"} {...(top ? { "data-audition-best": "" } : {})}>
<div className="flex items-baseline justify-between gap-2">
@@ -464,7 +466,7 @@ export default function VoicesPanel({ project, posts, initialWho = null }: { pro
)}
{audition && !audition.speaker && (
<p className="m-0 mt-2 text-[11.5px] text-muted" data-audition-no-reference="">
- no real voice named for {chosen.name} in this project (speakers.json — the walk's “Add to a voice”): the candidates are not scored
+ no real voice named for {chosen.name}{" "}in this project (speakers.json — the walk's “Add to a voice”): the candidates are not scored
</p>
)}
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -105,6 +105,10 @@ Inbox cannot disagree about what is wrong with one.
| `posts narrate <project> <item> --take --thread [--parents 0\|all\|none\|<n>] [--skip-parent <id\|parent:i>]… [--no-quoted] [--no-linked] [--read-seen] [--voice-for <handle>=<voice>]… [--voice v] [--engine e] [--note "…"] [--force] [--no-hold] [--dry-run] [--json]` | a **THREAD READ** as one command ([knobs.md](knobs.md#pronunciation-and-voices-the-lexicon-the-voice-map-a-thread-read), `lib/report/postThreadRead.mjs`): the post it answers (`--parents all`: every ancestor; `<n>`: parents 0..n; `none`), the post it quotes and the posts it links to, then his words, in DATE order, each in its author's voice (`--voice-for`, then the project's voice map, `posts voices`; his own: the narrator's), the redaction, the slur filter (a beep is skipped: a joined read is not word-timed) and the lexicon (`posts say`) applied. A parent or quoted post the item before already shows is not read again (`--read-seen`: it is). Each part is synthesized ONCE by the editor's tts op into `narration/parts-cache/<sha1(voice\|text)>.wav` (the transcription lane held meanwhile, only if it was not; `--no-hold`: left alone), joined (0.8 s between pieces, 0.6 between paragraphs, 0.25 inside one) into `take-<n>.<engine>-thread.wav` with `take-<n>.parts.json`, saved with its parts' roles, its lexicon and how it was asked (`read`) and PICKED — one write (one undo point). `--dry-run`: the pieces, voices and parts (cached or not), nothing asked. Already up to date (same words and voices): nothing done, **exit 0** (`--force`: again). A part not synthesized: **exit 1** (the parts made stay cached; run it again); `--json` prints `{ok: false, error}` too. A usage error: **exit 2** |
| `posts say <project> [ls] [--item <id>]` · `add <word\|phrase> "<spoken>" [--case] [--item <id>] [--note "…"]` · `remove <word\|n> [--item <id>]` · `try "<text>" [--item <id>]` · `stale` `[--json]` | **THE PRONUNCIATION LEXICON** ([knobs.md](knobs.md#pronunciation-and-voices-the-lexicon-the-voice-map-a-thread-read)): `narration/lexicon.json` in the project, a word or phrase said differently in EVERY synthesized read (a script's `--take`, each piece of a thread read, the bench's re-take); the scripts and cards keep their words. Whole words, without case unless `--case`, a phrase across any spaces, regex characters literal; `--item` for one item's reads (it wins over the project's). A masked slur and a redacted word are never replaced. `add` of a word already listed changes what is said. `try` prints what a voice would be asked to say. `stale` lists every picked read that still says an entry the old way, with the command that re-reads it. A bad entry or an unknown item: **exit 2** |
| `posts voices <project> [ls] \| set <handle\|*> <voice> \| remove <handle\|*> [--json]` | **THE VOICE MAP** (`narration/voices.json`): the stock voice a thread read gives each author (`*`: everyone it does not name; default `leo` on Orpheus); `ls` lists the map and every author the cut's items carry with the voice each would get. A bad handle or voice: **exit 2** |
+| `cast [ls] \| add <id> --name … --voice <engine:voice> [--handles a,b] [--speakers …] [--convert-engine e] [--convert-voice v] [--narrator] \| set <id> … \| rm <id> \| undo [--json]` | **THE CAST** (`<reports>/.umtool/cast.json`, [knobs.md](knobs.md#the-cast-each-characters-voice-in-every-project-and-the-voices-page)): the characters across projects and their STOCK voices, a layer under each project's voice map; one writer, an undo point a write |
+| `cast project <project> [--json]` · `cast use <project> <character\|@handle> <voice> [--everywhere]` · `cast reread <project> <character> [--dry-run]` | a project's characters (each voice now, where it comes from, its stale reads), the voice for this project or everywhere, and the re-reads that asks for |
+| `cast audition <character\|@handle> --voices a,b,… [--project <p>] [--text "…" \| --item <id> \| --line <n> \| --stock] [--no-score \| --score-only] [--json] [--progress ndjson]` | **AN AUDITION**: one line read by 2-6 stock voices through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` (cached), scored for closeness to the character's real voice (`speakers.json`; TitaNet, local) |
+| `posts narrate <project> <item> --recording <file> [--as <character>] [--no-clean] [--no-convert] [--label l]` | **a recording made a character's read**: kept (recorded), cleaned (voice-enhance), converted (voice-convert) to the character's STOCK voice, each a new take, the last picked |
| `posts fx <project> <item> add caption --match "…" --text "…" [--target post\|quoted\|parent:<i>] [--occurrence n] [--at s] [--lead s] [--hold s] [--place below\|above\|side]` · `add clock [--rewind auto\|on\|off] [--off]` · `set <n> [--text …] [--place …] [--rewind …]` | a post item's **caption** ([report-video.md](report-video.md#a-caption), [knobs.md](knobs.md#a-caption-a-chip-explaining-a-phrase-as-it-is-read)): a chip explaining a phrase (any script: CJK drawn), up as it is read -- `--at`, else the take's word timings, else the reading estimate -- held `--hold` s, by the phrase and never over a word read while it is up; it waits for a word zoom. Its **clock** ([knobs.md](knobs.md#the-clock-each-posts-own-time-on-its-card-run-between-items)): the post's own time on the card, run from the clock item before it (forward; a REWIND when earlier: `--rewind`), `--off` not on this item. Through `updatePostFx`, refused in the build's words (**exit 1**); a zoom's knob on a caption, or a caption's on a zoom (**exit 1**) |
| `posts clock <project> [on\|off\|default] [--zone <IANA zone>] [--json]` | the cut's **clock** default (`render.posts.clock`, `updatePostClock`); bare, which items show it and their times |
| `posts fx <project> <item> add slam --text "不動心" [--match "…" \| --at s] [--whole \| --per-glyph] [--gap s] [--hold s] [--from-scale x] [--color #rrggbb] [--outline #rrggbb] [--outline-width px] [--place over-match\|center] [--size px] [--face jp\|sc\|tc\|kr] [--sfx trailer-hit\|off] [--volume x] [--swell \| --no-swell] [--bar "…" [--bar-style dark\|gold\|plain]]` · `set <n> [those flags; --bar off clears it]` | a post item's **slam** ([report-video.md](report-video.md#a-slam), [knobs.md](knobs.md#a-slam-a-trailer-style-title-slam-over-a-word-as-it-is-read)): a corny trailer title slam -- each glyph huge, shrinking onto the card just above the matched words' line and HITTING (a flash, dust, the frame's punch, a trailer hit's boom: the teaser's generator, `trailer-hits.mjs`), gold with a black outline; the hits spread evenly over the words' spoken span (`--gap` spaces them, `--at` moves the first), held `--hold` s; `--bar` lands the glyphs on a translation bar (rising in at the first hit, faded with them); a caption up with it waits for it. Through `updatePostFx`, refused in the build's words (**exit 1**); a slam's knob on another effect, or another's on a slam (**exit 2**) |
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -879,8 +879,8 @@ entry its words hold that it did not apply with the same spoken form (a recordin
not the manifest: changing it never re-renders a card, it makes new takes. Beep slurs: a take with a lexicon entry is
still word-timed against its script as written (the replaced words are placed between the words heard).
-**The voice map** (`narration/voices.json`, `updateVoiceMap`): `{"<handle>": "<voice>", "*": "<voice>"}` -- the stock
-voice a thread read gives each author (handles without `@`, any case; `*` everyone it does not name, default `leo` on
+**The voice map** (`narration/voices.json`, `updateVoiceMap`): `{"<handle>": "<voice>", "*": "<voice>"}` -- the
+project's override of THE CAST (below, "The cast"); the stock voice a read gives each author (handles without `@`, any case; `*` everyone it does not name, default `leo` on
Orpheus). The item's own author reads in the item's narrator voice (`narration.voice`, else the cut's) unless the map
names them; `--voice-for <handle>=<voice>` overrides it for one read, `--voice` sets his post's.
@@ -916,6 +916,60 @@ umtool posts narrate <p> <item> --take --thread --parents all --skip-parent 2117
umtool posts roles <p> <item> # the guard: every part on screen while it is said
```
+## The cast (each character's voice, in every project) and the Voices page
+
+The operator, 6 Nov 2026: "pick different voices for different characters, and in UI alone be able to try rendering
+different ones to compare … and try to maintain consistent voices for different repeating characters".
+
+**The cast** (`report-to-video/cast.mjs`; `<reports>/.umtool/cast.json`, one writer `lib/report/castStore.mjs`
+`castWrite` -- a token, an undo point a write, a broken file never overwritten): the CHARACTERS that recur across
+projects -- `{id, name, handles, voice, convert?, speakers?, avatar?, note?, narrator?}`. `voice` is a STOCK voice
+with its engine (`kokoro:am_michael`, `orpheus:zac`); `convert` the voice (and engine, openvoice | seed-vc) a
+recording of them is converted to (default: `voice`); `speakers` the names their REAL voice goes by in a project's
+`speakers.json` -- a reference to compare a candidate with, never a target (the editor's convert op refuses a file;
+the cast holds no path). One character may be the `narrator` (a recording's default character).
+
+**Every read asks one function** (`post-say.mjs` `voiceSourceOf` / `resolvePieceVoice`): the read's own voice
+(`--voice-for`, `--voice`, the bench's voice field), the project's voice map (`narration/voices.json` -- the
+project's OVERRIDE LAYER; a value may name its engine too), **the cast**, the narrator's (the item's own author),
+the map's `*`, the default. A single post's take (`posts narrate --take`, the bench's Re-take: `readVoice.mjs`) and
+each piece of a thread read agree. A voice that names another engine than the read's is synthesized by it: a
+thread read may join Orpheus and Kokoro parts (each part records its `engine`; the disclosure names both). Projects
+without a cast read as before.
+
+**The guard**: `umtool lint <p>` warns for each picked read that says a cast character in another voice than now
+(`umtool cast reread`), and notes each cast voice the project's map overrides on purpose.
+
+**An audition** (`lib/report/castAudition.mjs`): one line -- the character's own words in the project (its post's
+script, a context post's words), a stock line, or typed -- read by 2-6 candidate stock voices through the editor's
+tts op (a job each on its queue: the GPU and the heavy slot are its; Orpheus pins ~8.5 GB, Kokoro is fast -- Kokoro
+first), each kept in `<p>/narration/auditions/<sha1(engine|voice|text)>.wav` brought to -20 LUFS (they compare by
+ear, not by level; a re-audition is a cache hit), and scored for **closeness to the character's real voice** (the
+project's `speakers.json`, speaker-check's arithmetic: TitaNet-small, local) into `narration/auditions/scores.json`,
+with an excerpt of the real voice (`ref-<speaker>.wav`) to listen to beside them.
+
+**A recording made a character's read**: `posts narrate <p> <item> --recording <file> [--as <character>]` keeps it as
+a recorded take (the original), cleans it (the editor's voice-enhance, when installed) and converts it (its
+voice-convert) to the character's stock voice -- each a new take, the last picked, the disclosure line said.
+
+| Knob | In umtool | From a terminal | Route |
+|---|---|---|---|
+| the cast -- `<reports>/.umtool/cast.json` | **Voices** (`/projects/<p>/voices`, from the Cut tab's Reads and voices): **the cast** list, ✕ removes, **Undo the last cast change**; an audition's **Use everywhere** adds or changes a character | `umtool cast ls` · `add <id> --name … --voice kokoro:am_michael --handles a,b [--speakers Jeremy] [--convert-engine seed-vc] [--convert-voice …] [--narrator]` · `set <id> …` (`--add-handle`, `--remove-handle`, `--no-convert`) · `rm <id>` · `undo` | `POST /api/report/voices {op: "cast-rm" \| "cast-undo" \| "cast-set"}` |
+| a project's characters -- each one's voice now and where it comes from, its reads, its drift, its real voice | **Voices**: the characters table | `umtool cast project <p> [--json]` | `GET /api/report/voices?project` |
+| an audition | **Voices** → a character's **Audition**: the line, the candidates (engine, voice, Add), **Render** (a job: the editor's tts, then the closeness through the heavy slot), each played at one loudness, **▶ Play each in turn** (the real voice first) | `umtool cast audition <character\|@handle> --project <p> --voices kokoro:am_michael,kokoro:am_onyx,orpheus:zac [--text "…" \| --item <id> \| --line <n> \| --stock] [--no-score \| --score-only] [--json]` | `POST /api/report/voices {op: "audition", who, voices, text?, item?}` |
+| the voice a character reads in -- this project, or everywhere | an audition's **Use for this project** / **Use everywhere** | `umtool cast use <p> <character\|@handle> <voice> [--everywhere]` (the project's own override goes with `--everywhere`) | `POST … {op: "use", who, voice, scope}` |
+| the re-reads a voice change asks for | the confirm under the audition: the items, **Queue N re-reads** (steps of the queue: /jobs; each a new take, picked, awaiting approval) | `umtool cast reread <p> <character> [--dry-run]` | `POST … {op: "reread", who}` |
+| a recording made a character's read | **Voices** → *a recording*: the item, as whom, drop a file, clean / convert, **Import** (a job) | `umtool posts narrate <p> <item> --recording <file> [--as <character>] [--no-clean] [--no-convert]` | `POST … multipart {op: "recording", item, as?, file}` |
+
+```sh
+umtool cast add thequartering --name TheQuartering --voice kokoro:am_michael --handles thequartering --speakers Jeremy
+umtool cast project quartering-diet # who reads in what, from where; the stale reads
+umtool cast audition thequartering --project quartering-diet --voices kokoro:am_michael,kokoro:am_onyx,orpheus:zac
+umtool cast use quartering-diet thequartering kokoro:am_michael --everywhere # then:
+umtool cast reread quartering-diet thequartering # each stale read made again (a take each, picked)
+umtool posts narrate quartering-diet <item> --recording my-read.wav --as thequartering
+```
+
## A caption (a chip explaining a phrase as it is read)
`fx: [{kind: "caption", match, text, …}]` on a post item ([report-video.md](report-video.md#a-caption): the shape,
diff --git a/umtool/e2e/fixtures/voices-fixture.mjs b/umtool/e2e/fixtures/voices-fixture.mjs
@@ -1,12 +1,12 @@
// THE VOICES PAGE (voices.spec.ts; lib/report/castCli.mjs, components/projects/VoicesPanel.tsx): a cut of two clips
-// of "Host" (the real voice: speakers.json names them) and three post items --
+// of "Host Man" (the real voice: speakers.json names them) and three post items --
//
// reports/voices-fixture/
// k01, k02 Host's clips (a 150 Hz voice and its octave), each window in the corpus under voicescast
// p-1 @hostman "Host's first line, read aloud." -- its picked take orpheus · zac (a 262 Hz tone)
// p-2 @hostman answers @guest's post (a parent): no take yet
// p-3 @guest "The guest's own line." -- no take yet
-// speakers.json Host: k01, k02
+// speakers.json Host Man: k01, k02 (the cast finds him by his name)
//
// The cast (<fixture>/.umtool/cast.json) is the spec's to write and remove. The editor is the suite's stub (its tts
// writes a tone; its voice-convert copies), the speaker embedder the test kit's fake (VOICE_MATCH_* in
@@ -58,6 +58,6 @@ export function makeVoicesFixture({ reports, channels, manifest, ff }) {
post("3", "guest", "The Guest", "The guest's own line.", { narration: { script: "The guest's own line." } }),
);
write(dir, "video.manifest.json", manifest(VOICES, "The Voices Fixture", { siteOrigin: "https://archive.example", channelSlug: chan }, timeline));
- write(dir, "speakers.json", { speakers: [{ name: "Host", clips: ["k01", "k02"] }] });
+ write(dir, "speakers.json", { speakers: [{ name: "Host Man", clips: ["k01", "k02"] }] });
return dir;
}
diff --git a/umtool/e2e/voices.spec.ts b/umtool/e2e/voices.spec.ts
@@ -73,7 +73,7 @@ test("each character's voice and where it comes from; an audition side by side w
// Nothing in the cast yet: his own items read in the narrator's voice; the guest's too, and as a context post the default.
await expect(host).toHaveAttribute("data-voice-from", "narrator");
await expect(host.locator("[data-voice-now]")).toHaveAttribute("data-voice-now", "orpheus:zac");
- await expect(host.locator("[data-voice-speaker]")).toHaveAttribute("data-voice-speaker", "Host");
+ await expect(host.locator("[data-voice-speaker]")).toHaveAttribute("data-voice-speaker", "Host Man");
await expect(host.locator("[data-voice-drift]")).toHaveAttribute("data-voice-drift", "0");
await expect(guest).toContainText("1 item · 1 as context");
await expect(guest).toContainText("as a context post: orpheus · leo (the default)");
@@ -82,7 +82,9 @@ test("each character's voice and where it comes from; an audition side by side w
// Audition him: his current voice is the first candidate; two Kokoro voices added from the engine's list.
await host.locator("[data-voices-audition-open]").click();
- const box = page.locator('[data-audition-panel="@hostman"]');
+ // The audition box (its key follows the character into the cast: @hostman, then hostman).
+ const box = page.locator("[data-audition-panel]");
+ await expect(box).toHaveAttribute("data-audition-panel", "@hostman");
await expect(box.locator('[data-audition-candidate="orpheus:zac"]')).toBeVisible();
await expect(box.locator("[data-audition-said]")).toContainText("Host's first line, read aloud.");
for (const v of ["am_michael", "bm_george"]) {
@@ -100,11 +102,11 @@ test("each character's voice and where it comes from; an audition side by side w
const card = box.locator(`[data-audition-result="${spec}"]`);
await expect(card).toHaveAttribute("data-audition-state", "ready");
await expect(card.locator("[data-audition-score]")).toHaveAttribute("data-audition-score", /^-?\d\.\d{3}$/);
- await expect(card).toContainText("closeness to Host");
+ await expect(card).toContainText("closeness to Host Man");
await expect(card).toContainText(/-2\d\.\d LUFS|-19\.\d LUFS|-20\.\d LUFS/);
}
// The real voice beside them: a reference, never a target.
- await expect(box.locator('[data-audition-reference="Host"]')).toContainText("never a target");
+ await expect(box.locator('[data-audition-reference="Host Man"]')).toContainText("never a target");
const ref = await box.locator("[data-audition-reference-audio]").getAttribute("src");
expect((await page.request.get(ref!)).status()).toBe(200);
const src = await box.locator('[data-audition-audio="kokoro:am_michael"]').getAttribute("src");
@@ -141,7 +143,8 @@ test("Use for this project: the project's own map, shown as an override of the c
await page.goto(urls.voicesHref(P));
const guest = page.locator('[data-voices-character="@guest"]');
await guest.locator("[data-voices-audition-open]").click();
- const box = page.locator('[data-audition-panel="@guest"]');
+ const box = page.locator("[data-audition-panel]");
+ await expect(box).toHaveAttribute("data-audition-panel", "@guest");
// No real voice named for the guest: candidates are not scored.
await box.locator("[data-audition-line]").selectOption("stock");
await expect(box.locator("[data-audition-said]")).toContainText("you cannot make this stuff up");
@@ -172,7 +175,9 @@ test("a recording dropped on an item: kept as recorded, converted to the charact
await page.goto(urls.voicesHref(P));
// Put the host in the cast (Use everywhere, from an audition of his current voice: nothing to render twice).
await page.locator('[data-voices-character="@hostman"] [data-voices-audition-open]').click();
- const box = page.locator('[data-audition-panel="@hostman"]');
+ // The audition box (its key follows the character into the cast: @hostman, then hostman).
+ const box = page.locator("[data-audition-panel]");
+ await expect(box).toHaveAttribute("data-audition-panel", "@hostman");
await box.locator("[data-audition-render]").click();
await expect(box.locator("[data-audition-job]")).toHaveAttribute("data-audition-job", "done", { timeout: 120_000 });
await box.locator('[data-audition-result="orpheus:zac"] [data-audition-use="cast"]').click();