commit 8edf642041107c443b927c972e3412680bfd8988
parent 497e2f48acb669db3c42a5abd894d5fc85a2a8a7
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 17 Nov 2026 09:44:24 -0500
docs: a character's Orpheus tuning -- knobs.md, the cast's verbs, cli.md, changelog
knobs.md gains "A character's Orpheus tuning": the stored shape, the three
named starting points and their values, Try it, Keep, the exact stale rule,
and that cards have no character (a card keeps its own narration.tuning).
The verb registry and the cast's docs rows gain the tuning flags, cast try
and cast stale; docs/cli.md regenerated. umtool has no CHANGELOG of its own:
the bullet is in editor/CHANGELOG.md's Unreleased, where S1's umtool items are.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
5 files changed, 85 insertions(+), 7 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -32,6 +32,20 @@
- `pnpm ops get cookies [fresh]` gives the same rows as JSON.
- The dashboard's cookie banners, /settings' X and archive sections and /review's X run console link to it. The
alert sentences and job log lines now say "on /cookies" where they said "on /settings".
+- **umtool: a character carries an Orpheus tuning, tried and kept from its preset on the Voices page.** The synthetic
+ preset gains `tuning` (temperature, top_p, repeat penalty, takes), the default of every Orpheus read the character
+ answers for; a read's own tuning beats it, and a character without one reads exactly as before.
+ - Three named starting points fill the numbers: **Steady** (0.4 / 0.8 / 1.2), **Default** (the sampler's own) and
+ **Lively** (0.75 / 0.92 / 1.25). The numbers are always shown and editable ("custom").
+ - **Read it** reads a line this character says in the project (or any typed line) as a job through the editor's tts;
+ **Another reading** reads it again at the next reading. The tries are listed at one loudness with their numbers
+ and reading. They are scratch: no take, nothing in the draft.
+ - **Keep these settings** runs `umtool cast set` (or `cast project <p> set`): `--tuning steady|default|lively`,
+ `--temperature`, `--top-p`, `--repeat-penalty`, `--chunk-takes`, `--no-tuning`. `--json` says every value the reads
+ are asked with, the editor's takes when the character names none.
+ - The reads made with other settings than the character's tuning now are counted and listed on the preset and the
+ characters table, and by `umtool cast stale <p> [<character>]`. They are never re-made by themselves.
+ - `umtool cast try <p> <character>` is the Read it twin (`--reading N`, `--another`, `--list`, `--clear`).
- **An Orpheus line can be read again differently: the tts op takes a `tuning` and a `reading`.** `pnpm ops tts`
(`POST /api/ops/tts`) takes `tuning` (any of temperature 0.1–1.5, top_p 0.05–1, top_k 0–200, min_p 0–0.5,
repeat_penalty 1–2, takes 1–6) and `reading` (0–99,999; reading r reads with seed base 1234 + 9973 × r). A value out
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -27,6 +27,8 @@ Inbox cannot disagree about what is wrong with one.
| `cast project <project> add <id> [--name "…"] [--voice <engine:voice>] [--handles a,b] [--anonymous [--shown "…"]] [the preset flags]` · `set <id> … [--no-voice] [--no-anonymous]` · `rm <id>` · `undo` · `pool <id>` · `keep <character\|@handle> [--anonymous]` `[--json]` | **THIS VIDEO's OWN CHARACTERS** (`<project>/narration/characters.json`, [knobs.md](knobs.md#this-videos-own-characters-and-an-items-own)): the cast's shape and the cast's writer (a token, an undo point a write, atomic, a broken file never overwritten), for people who must not enter the pool. `--anonymous`: it goes by a **shown name** (`--shown`; default the next of `Anon 1`, `Anon 2` …) on the Voices page, in `cast project` and in a recording's note, and never enters the pool; **anonymity belongs to the handle, project-wide**: every card, popup post, promise panel, chat replay and synthesized read draws or says them under the shown name; what cannot be fixed is refused or warned -- the coverage table in [knobs.md](knobs.md#this-videos-own-characters-and-an-items-own). `--voice` is optional here: a character with none leaves the voice to the layers under it. `narration/voices.json` keeps working under it (a handle in it reads as a character with only a synthetic voice) and is never rewritten by these. `pool <id>` (**Add to the pool**) moves one into the cast -- an anonymous one, or an id the cast has, is refused; `keep` (**Keep in this video only**) copies a cast character here (its presets changed for this video alone), or gives an author with no character one, in the voice they read in now. A refusal: **exit 1**, nothing written |
| `cast assign <project> [--model] [--dry-run] [--json]` · `--accept <id>` · `--accept-all` · `--reject <id>` · `--reject-all` · `--change <id> [--voice <engine:voice>] [--speed s] [--name "…"] [--direction "…"] [--anonymous [--shown "…"] \| --no-anonymous]` | **AUTO-ASSIGNMENT BY RULE** ([knobs.md](knobs.md#proposed-characters-cast-assign)): every post item's author gets a character -- the item's own, this video's, its voice map's or the cast's; an author with none a **PROPOSED** character of this video: an id from the handle, their name, a STOCK Kokoro voice -- the next, in one fixed rotation (a male and a female voice in turn), that this project does not use yet; a gender hint only from the profile's own stated pronouns when the capture carries them. Proposals are kept apart in `<project>/narration/characters.json` (`proposed`; the same writer, an undo point: `cast project <p> undo`) and are **applied to nothing** -- no item, no picked read -- until a person accepts. `--accept <id>` / `--accept-all`: this video's character, named (`narration.character`) on that author's items that name none -- no take made or changed (a picked read in another voice shows as drift); `--change <id>`: its voice (a stock one only), speed, name, direction or anonymity -- the row is then a person's, never re-sent to a model or overwritten; `--reject <id>` / `--reject-all`: dropped. An author an anonymous character covers is never proposed for and never sent to a model. A proposal whose author has a character now is dropped by the next run. `--dry-run` writes nothing. **`--model`** (on request only): the generation task `cast-assign`, routed by `settings.generation` like the other tasks, is asked per author (display name, bio, post text -- untrusted) for `{character, voice, speed, direction}`; each field is checked (a stock voice, a speed 0.5–2, one plain line, control characters stripped) and laid over the rule's row, which stays when the answer fails. Refused: **exit 1**, nothing written |
| `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) |
+| `cast set <id> [--tuning steady\|default\|lively] [--temperature t] [--top-p p] [--repeat-penalty r] [--chunk-takes n] [--no-tuning]` (and `cast add`, `cast project <p> add\|set`) | **A CHARACTER's ORPHEUS TUNING** ([knobs.md](knobs.md#a-characters-orpheus-tuning)): on its synthetic preset -- a named starting point (Steady, Default, Lively: temperature, top_p and repeat penalty together) and the numbers over it; `default` takes one off; a value equal to its default is not kept (takes 3 too: its reads then take the editor's `tts.orpheus.takes`). The default of every Orpheus read the character's preset answers for; a read's own tuning flags beat it; Kokoro and eSpeak NG ignore it. `--json` says `tuning` with every value its reads are asked with (`effective`). Out of range: **exit 1** |
+| `cast try <project> <character\|@handle> [--text "…" \| --item <id> \| --line <n>] [the tuning flags] [--reading N \| --another] [--list \| --clear] [--json] [--progress ndjson]` · `cast stale <project> [<character>] [--json]` | **TRY IT**: one line read in the character's own voice with a tuning (its own, or the flags over it) and a reading, through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` and kept in a short list (`tries.json`, the newest 12 per character; `--list`, `--clear`) -- SCRATCH: no take on any post, nothing in the draft. **STALE**: the picked Orpheus reads of a character made with other settings than its tuning now (a read whose line asked its own tuning, or a recorded one, never is; takes compared only when the character names them) -- listed, never re-made |
| `speaker-check <project> [--clip <id> …] [--json] [--progress ndjson]` · `--set 'Name=<clip>,<channel>/<id>,channel:<slug>'` · `--remove <name>` · `--list` | which of the project's **named voices** (`speakers.json`) each clip is: TitaNet-small, local, against each voice's robust centroid → `<project>/speaker-check.json` (merged); the walk's **Speaker:** badge and **Check speaker** ([report-video.md](report-video.md#the-speaker-check-on-the-walk-which-of-several-voices)) |
| `quote-check <project> [--take T] [--clips a,b] [--pad S] [--json]` · `quote-check <project> [--take T] --status` | **is each clip's quote in the seconds it plays?** The cut ±15 s of the source the render would cut it from, transcribed by the editor (`pnpm ops transcribe`, words on — its transcription lane), the quote found in those words and in the cues: `ok`, `moved` (heard more than 0.5 s from where the cues have it), `not-found`; rows in `quote-check.json`, stale when the cut or the quote changes; the editor's work files go to `<project>/.quote-check/`, never under `out/` (a link onto a media drive the editor will not write in); `check` blocks on `moved`/`not-found` (`clip-quote-moved`, `clip-quote-missing`), a take refuses them, `prep --status` counts them; `--take T` judges the take's own clips into `takes/T/quote-check.json`, which the take's render, `check --take T` and `window --take T --align` read with the project's rows (either current row refuses: `--take` only ever adds a refusal) ([knobs.md](knobs.md#the-quote-check-is-the-quote-where-the-clip-plays)) |
| `check-joins <project> --take <id> [--json] [--all] [--limit <n>]` | do a rendered take's **post joins carry on**: every boundary of its master where the next post item draws a post the one before showed, its planned join, the SSIM across it and the largest frame-to-frame step (read-only, ffmpeg) -- worst first ([report-video.md](report-video.md#thread-scenes-whole-threads-the-join-manual-threads-wide-attachments-context-media-link-visits-the-branch-map)) |
@@ -176,18 +178,20 @@ draft (the project's manifest); *project*: a project's other files, or reads; *c
| `still <project> <clip> --at N [--take TAKE]` | one frame of a clip's fetched window at a source second, into shots/ | form · *project* |
| `still <project> ls` | the pictures in the project's shots/ | form · *project* |
| `cast ls` | the characters' voices across projects | form · *corpus* |
-| `cast add <id> --name NAME --voice VOICE [--handles HANDLES] [--speakers SPEAKERS] [--speed N] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE] [--narrator]` | a character: name, stock voice, handles, its two presets | form · *corpus* |
-| `cast set <id> [--name NAME] [--voice VOICE] [--handles HANDLES] [--speakers SPEAKERS] [--speed N] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE] [--add-handle ADD-HANDLE] [--remove-handle REMOVE-HANDLE] [--no-convert] [--no-speed] [--narrator] [--no-narrator]` | change a character: its name, handles, presets | form · *corpus* |
+| `cast add <id> --name NAME --voice VOICE [--handles HANDLES] [--speakers SPEAKERS] [--speed N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE] [--narrator]` | a character: name, stock voice, handles, its two presets | form · *corpus* |
+| `cast set <id> [--name NAME] [--voice VOICE] [--handles HANDLES] [--speakers SPEAKERS] [--speed N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE] [--add-handle ADD-HANDLE] [--remove-handle REMOVE-HANDLE] [--no-convert] [--no-speed] [--no-tuning] [--narrator] [--no-narrator]` | change a character: its name, handles, presets | form · *corpus* |
| `cast rm <id>` | a character out of the cast (an undo point) | form · *corpus* |
| `cast undo` | the cast as it was before its last write | form · *corpus* |
| `cast project <project>` | the project's characters: each one's voice, where it comes from, its drift; this video's own | form · *project* |
-| `cast project <project> add <id> [--name NAME] [--voice VOICE] [--handles HANDLES] [--anonymous] [--shown SHOWN] [--speed N] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE]` | a character of this video only (anonymous: shown under Anon 1 …) | form · *project* |
-| `cast project <project> set <id> [--name NAME] [--voice VOICE] [--handles HANDLES] [--shown SHOWN] [--speed N] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE] [--add-handle ADD-HANDLE] [--remove-handle REMOVE-HANDLE] [--no-voice] [--no-convert] [--no-speed] [--anonymous] [--no-anonymous]` | change a character of this video's | form · *project* |
+| `cast project <project> add <id> [--name NAME] [--voice VOICE] [--handles HANDLES] [--anonymous] [--shown SHOWN] [--speed N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE]` | a character of this video only (anonymous: shown under Anon 1 …) | form · *project* |
+| `cast project <project> set <id> [--name NAME] [--voice VOICE] [--handles HANDLES] [--shown SHOWN] [--speed N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--convert-engine openvoice\|seed-vc\|default] [--convert-voice CONVERT-VOICE] [--convert-pitch target\|source\|contour\|default] [--convert-semitones N] [--enhance on\|off\|default] [--trim on\|off\|default] [--trim-pad TRIM-PAD] [--direction DIRECTION] [--note NOTE] [--add-handle ADD-HANDLE] [--remove-handle REMOVE-HANDLE] [--no-voice] [--no-convert] [--no-speed] [--no-tuning] [--anonymous] [--no-anonymous]` | change a character of this video's | form · *project* |
| `cast project <project> rm <id>` | a character out of this video's (an undo point) | form · *project* |
| `cast project <project> undo` | this video's characters as they were before their last write | form · *project* |
| `cast project <project> pool <id>` | Add to the pool: this video's character into the cast | form · *corpus* |
| `cast project <project> keep <character> [--anonymous] [--shown SHOWN]` | Keep in this video only: a cast character copied here, or an author given one | form · *project* |
| `cast audition <character> --voices VOICES [--project PROJECT] [--text TEXT] [--item ITEM] [--line N] [--stock] [--no-score] [--score-only]` | one line read by 2-6 candidate voices, scored against the real voice | form · queued · *project* |
+| `cast try <project> <character> [--text TEXT] [--item ITEM] [--line N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--reading N] [--another] [--list] [--clear] [--no-hold]` | one line read in a character's voice with a tuning and a reading (scratch) | form · queued · *project* |
+| `cast stale <project> [<character>]` | the reads made with other settings than a character's tuning now (listed, never re-made) | form · *project* |
| `cast use <project> <character> <voice> [--everywhere]` | the voice a character reads in, here or everywhere | form · *draft* |
| `cast reread <project> <character> [--dry-run]` | the items that say a character in another voice, read again | form · queued · *project* |
| `cast assign <project> [--model] [--dry-run] [--accept ACCEPT] [--accept-all] [--reject REJECT] [--reject-all] [--change CHANGE] [--voice VOICE] [--speed N] [--name NAME] [--direction DIRECTION] [--anonymous] [--shown SHOWN] [--no-anonymous]` | a proposed character for each author with none (by rule; --model on request); accept, change, reject | form · *project* |
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -1770,6 +1770,47 @@ human-filtered voices". A character carries two, picked by how the read is made:
The disclosure line a cut carries is unchanged: it is made from the takes (a synthetic voice, a voice converted to a
synthetic voice), never from a preset.
+### A character's Orpheus tuning
+
+Lane character-tuning (S2 of `plans/orpheus-retune.md`): the synthetic preset may carry Orpheus's **tuning** --
+`synthetic.tuning` `{temperature?, top_p?, repeat_penalty?, takes?}`, the ranges of the editor's tts op
+(`common/lib/ttsTuning.mjs`). It is the default of every Orpheus read the character's preset answers for; a read's own
+tuning (`posts narrate … --take --temperature …`) beats it; Kokoro and eSpeak NG ignore it, as Orpheus ignores a speed.
+Cards have no character (a card's narration is spoken in its own voice or `render.narration`'s), so a character's
+tuning never reaches one; a card keeps its own `narration.tuning`.
+
+| Named starting point | temperature | top_p | repeat penalty | |
+|---|---|---|---|---|
+| **Steady** | 0.4 | 0.8 | 1.2 | cooler and narrower: steadier pitch and pace (the repeat penalty held: a cooler sampler loops more readily) |
+| **Default** | 0.55 | 0.85 | 1.2 | `ORPHEUS_SAMPLER`, the operator's pick by ear (12 Oct 2026) |
+| **Lively** | 0.75 | 0.92 | 1.25 | warmer and wider: more varied intonation, a touch quicker; kept under 0.8, where words slur |
+
+The names cover the sampler; `takes` (the takes a chunk gets) is a number of its own. A value equal to its default is
+not kept, and a tuning with nothing left is no key (takes 3 included: a character naming no takes reads with the
+editor's `tts.orpheus.takes`, and the preset and `--json` say that number, never one the read would not use).
+
+- **CLI:** `umtool cast set <id> --tuning steady|default|lively --temperature t --top-p p --repeat-penalty r
+ --chunk-takes n` (any of them; `default` takes one off; `--no-tuning`), the same on `cast add` and `cast project <p>
+ add|set`. `--json` says `tuning: {tuning, name, effective, takesFrom}`.
+- **Try it:** the preset's tuning row on the Voices page -- Steady / Default / Lively fill the numbers (always shown;
+ an edited one is "custom"); a line this character reads in the project, prefilled (its first own line of 8 words or
+ more, else its longest, else a stock line; any line may be typed); **Read it** is a job (`umtool cast try <p>
+ <character> --text … --temperature … --reading 0`: the editor's tts, on its `tts` lane); **Another reading** the same
+ line and numbers at the next reading. Each try is levelled to -20 LUFS (as an audition) in
+ `<p>/narration/auditions/` and listed (`tries.json`: text, numbers, reading, Play), the newest 12 per character; a try
+ that falls off takes its file with it (`cast try <p> <character> --clear` empties the list). A try is **scratch**: no
+ take on any post, nothing written to the draft. While render mode holds the machine, the read says it waits for the
+ render; another umtool job running is said in place and Read it opens again when it ends.
+- **Keep these settings** runs `cast set` (a cast character) or `cast project <p> set` (this video's own): one write,
+ an undo point.
+- **Stale, never re-made:** a picked Orpheus read of the character is made with OTHER SETTINGS when its character's
+ preset answers for it now in the voice it was made in, its tuning was not asked by its own line (the take's
+ `tuningAsked` is not `true`; a take that says nothing but records a tuning off the defaults was asked so), and the
+ tuning it records (none: the defaults) differs from the character's -- the sampler's values, and `takes` only when the
+ character names them; the reading is never compared. A recorded or converted read never is. The preset and the
+ characters table say "N reads by this character were made with other settings" with the items; `umtool cast stale
+ <p> [<character>] [--json]` lists them. Re-reading them is a press elsewhere (the re-read queue), never automatic.
+
### This video's own characters, and an item's own
**A project's own characters** (`<project>/narration/characters.json`, format `umtool-project-characters`; the cast's
diff --git a/umtool/lib/cli/groups.mjs b/umtool/lib/cli/groups.mjs
@@ -70,10 +70,11 @@ export const GROUPS = [
" | project <p> [add <id> … | set <id> … | rm <id> | undo | pool <id> | keep <character|@handle>]",
" | audition <character> --voices a,b,c [--project <p>] [--text …] | use <p> <character> <voice>",
" [--everywhere] | reread <p> <character> the CAST: characters across projects (cast.json), each a",
- " PRESET -- synthetic (voice, speed) and recorded (convert, clean, trim, a direction) -- a project's",
+ " PRESET -- synthetic (voice, speed, Orpheus tuning) and recorded (convert, clean, trim, a direction) -- a project's",
" characters, its OWN (characters.json: anonymous ones), their drift, an audition of candidate voices",
" | assign <p> [--model] [--dry-run] | assign <p> --accept <id>|--accept-all|--reject <id>|--change <id> …",
" PROPOSED characters for authors with none, by rule; nothing applied until a person accepts",
+ " | try <p> <character> [--tuning …] [--reading N|--another] | stale <p> [<character>]",
],
docs: [
["`cast [ls] \\| add <id> --name … --voice <engine:voice> [--handles a,b] [--speakers …] [--speed s] [--convert-engine e] [--convert-voice v] [--convert-pitch target\\|source\\|contour] [--convert-semitones n] [--enhance on\\|off] [--trim on\\|off] [--trim-pad ms] [--direction \"…\"] [--narrator] \\| set <id> … \\| rm <id> \\| undo [--json]`",
@@ -86,6 +87,10 @@ export const GROUPS = [
"**AUTO-ASSIGNMENT BY RULE** ([knobs.md](knobs.md#proposed-characters-cast-assign)): every post item's author gets a character -- the item's own, this video's, its voice map's or the cast's; an author with none a **PROPOSED** character of this video: an id from the handle, their name, a STOCK Kokoro voice -- the next, in one fixed rotation (a male and a female voice in turn), that this project does not use yet; a gender hint only from the profile's own stated pronouns when the capture carries them. Proposals are kept apart in `<project>/narration/characters.json` (`proposed`; the same writer, an undo point: `cast project <p> undo`) and are **applied to nothing** -- no item, no picked read -- until a person accepts. `--accept <id>` / `--accept-all`: this video's character, named (`narration.character`) on that author's items that name none -- no take made or changed (a picked read in another voice shows as drift); `--change <id>`: its voice (a stock one only), speed, name, direction or anonymity -- the row is then a person's, never re-sent to a model or overwritten; `--reject <id>` / `--reject-all`: dropped. An author an anonymous character covers is never proposed for and never sent to a model. A proposal whose author has a character now is dropped by the next run. `--dry-run` writes nothing. **`--model`** (on request only): the generation task `cast-assign`, routed by `settings.generation` like the other tasks, is asked per author (display name, bio, post text -- untrusted) for `{character, voice, speed, direction}`; each field is checked (a stock voice, a speed 0.5–2, one plain line, control characters stripped) and laid over the rule's row, which stays when the answer fails. Refused: **exit 1**, nothing written"],
["`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)"],
+ ["`cast set <id> [--tuning steady\\|default\\|lively] [--temperature t] [--top-p p] [--repeat-penalty r] [--chunk-takes n] [--no-tuning]` (and `cast add`, `cast project <p> add\\|set`)",
+ "**A CHARACTER's ORPHEUS TUNING** ([knobs.md](knobs.md#a-characters-orpheus-tuning)): on its synthetic preset -- a named starting point (Steady, Default, Lively: temperature, top_p and repeat penalty together) and the numbers over it; `default` takes one off; a value equal to its default is not kept (takes 3 too: its reads then take the editor's `tts.orpheus.takes`). The default of every Orpheus read the character's preset answers for; a read's own tuning flags beat it; Kokoro and eSpeak NG ignore it. `--json` says `tuning` with every value its reads are asked with (`effective`). Out of range: **exit 1**"],
+ ["`cast try <project> <character\\|@handle> [--text \"…\" \\| --item <id> \\| --line <n>] [the tuning flags] [--reading N \\| --another] [--list \\| --clear] [--json] [--progress ndjson]` · `cast stale <project> [<character>] [--json]`",
+ "**TRY IT**: one line read in the character's own voice with a tuning (its own, or the flags over it) and a reading, through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` and kept in a short list (`tries.json`, the newest 12 per character; `--list`, `--clear`) -- SCRATCH: no take on any post, nothing in the draft. **STALE**: the picked Orpheus reads of a character made with other settings than its tuning now (a read whose line asked its own tuning, or a recorded one, never is; takes compared only when the character names them) -- listed, never re-made"],
],
},
{
diff --git a/umtool/lib/cli/verbs.mjs b/umtool/lib/cli/verbs.mjs
@@ -87,9 +87,16 @@ const window_ = () => [num("--at", { help: "the window's start, s" }), num("--du
// ---- the rows -------------------------------------------------------------------
const form = (verb, target, summary, args, extra = {}) => ({ verb, summary, target, ui: "form", args, ...extra });
+/** A character's Orpheus tuning flags (castCli.mjs tuningFlagsOf): a named starting point and the numbers over it. */
+const tuningArgs = () => [
+ pick("--tuning", ["steady", "default", "lively"], { help: "Orpheus's tuning: a named starting point" }),
+ opt("--temperature", { help: "0.1–1.5 (or default)" }), opt("--top-p", { help: "0.05–1 (or default)" }),
+ opt("--repeat-penalty", { help: "1–2 (or default)" }), opt("--chunk-takes", { help: "the takes a chunk gets, 1–6 (or default)" }),
+];
/** A character's preset flags (`umtool cast add|set`, `cast project <p> add|set`: castCli.mjs fieldsOf). */
const presetArgs = () => [
num("--speed", { help: "its voice's speed, 0.5–2 (Orpheus has none)" }),
+ ...tuningArgs(),
pick("--convert-engine", ["openvoice", "seed-vc", "default"]), opt("--convert-voice", { help: "engine:voice -- a STOCK voice, never a file" }),
pick("--convert-pitch", ["target", "source", "contour", "default"], { help: "the pitch a converted read lands on" }), num("--convert-semitones", { help: "-12…12, moves a followed pitch" }),
pick("--enhance", ["on", "off", "default"], { help: "a recording is cleaned first" }), pick("--trim", ["on", "off", "default"], { help: "a recording's edges trimmed to speech" }),
@@ -142,7 +149,7 @@ export const VERBS = Object.freeze([
]),
form("cast set", "corpus", "change a character: its name, handles, presets", [
arg("id"), opt("--name"), opt("--voice", { help: "engine:voice" }), opt("--handles"), opt("--speakers"), ...presetArgs(),
- opt("--note"), opt("--add-handle"), opt("--remove-handle"), bool("--no-convert"), bool("--no-speed"), bool("--narrator"), bool("--no-narrator"),
+ opt("--note"), opt("--add-handle"), opt("--remove-handle"), bool("--no-convert"), bool("--no-speed"), bool("--no-tuning"), bool("--narrator"), bool("--no-narrator"),
]),
form("cast rm", "corpus", "a character out of the cast (an undo point)", [arg("id")]),
form("cast undo", "corpus", "the cast as it was before its last write", []),
@@ -154,7 +161,7 @@ export const VERBS = Object.freeze([
], { shape: "cast project <project> add <id>" }),
form("cast project set", "project", "change a character of this video's", [
project(), arg("id"), opt("--name"), opt("--voice", { help: "engine:voice" }), opt("--handles"), opt("--shown"), ...presetArgs(), opt("--note"), opt("--add-handle"), opt("--remove-handle"),
- bool("--no-voice", "no voice of its own: the layers under it"), bool("--no-convert"), bool("--no-speed"), bool("--anonymous"), bool("--no-anonymous"),
+ bool("--no-voice", "no voice of its own: the layers under it"), bool("--no-convert"), bool("--no-speed"), bool("--no-tuning"), bool("--anonymous"), bool("--no-anonymous"),
], { shape: "cast project <project> set <id>" }),
form("cast project rm", "project", "a character out of this video's (an undo point)", [project(), arg("id")], { shape: "cast project <project> rm <id>" }),
form("cast project undo", "project", "this video's characters as they were before their last write", [project()], { shape: "cast project <project> undo" }),
@@ -166,6 +173,13 @@ export const VERBS = Object.freeze([
arg("character", { allowAt: true, help: "a character id or @handle" }), opt("--voices", { required: true, help: "engine:voice,engine:voice,…" }), project({ name: "--project", required: false }),
opt("--text", { type: "text" }), opt("--item"), num("--line"), bool("--stock"), bool("--no-score"), bool("--score-only"),
], Q),
+ // A character's Orpheus tuning tried on a line (scratch: no take, nothing in the draft) and its stale reads (lane character-tuning).
+ form("cast try", "project", "one line read in a character's voice with a tuning and a reading (scratch)", [
+ project(), arg("character", { allowAt: true, help: "a character id or @handle" }), opt("--text", { type: "text" }), opt("--item"), num("--line"),
+ ...tuningArgs(), num("--reading", { help: "0 the first; 1, 2, … read again differently" }), bool("--another", "the next reading after the highest kept"),
+ bool("--list", "the tries kept and the line the page prefills"), bool("--clear", "the character's tries removed"), bool("--no-hold"),
+ ], { shape: "cast try <project> <character>", ...Q }),
+ form("cast stale", "project", "the reads made with other settings than a character's tuning now (listed, never re-made)", [project(), arg("character", { allowAt: true, required: false })], { shape: "cast stale <project> <character>" }),
form("cast use", "draft", "the voice a character reads in, here or everywhere", [project(), arg("character", { allowAt: true }), arg("voice", { help: "engine:voice" }), bool("--everywhere", "the cast's voice, not this project's")], { shape: "cast use <project> <character> <voice>" }),
form("cast reread", "project", "the items that say a character in another voice, read again", [project(), arg("character", { allowAt: true }), dry()], Q),
// C3: PROPOSED characters by rule (a model only on request), kept apart until a person accepts one (castCli.mjs assignCommand).