Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 5e2387652f3b126eeebb41bface4450754e26eca
parent 13522015d2be32f6d457433cc0f0b7932fc26d4d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 12 Oct 2026 03:12:43 -0400

tts: Orpheus as picked by ear on a commentary script — zac, temperature 0.55 / top_p 0.85, repeat penalty 1.2, chunks of 5 sentences / 420 chars with shorter joins, a 4 s budget floor

The operator ranked the commentary audition (2026-10-12, ~/reports/tts-audition-quartering): D3 (zac, the
cooler sampler, repeat_penalty 1.2, the longer chunks) over D2, C2 and C3. A four-word line was cut on
every take at its 2.2 s budget and failed the synthesis; budgets now expect at least 4 s. The chunker takes
its limits as a parameter; the tuned round's fixtures keep testing it at 250/3. The model label moves to
"tuned 2026-10-12", so cached Orpheus narration is made again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
MSETTINGS.md | 2+-
Mcommon/controller/ttsFile.test.ts | 4++--
Mcommon/lib/ttsApps.test.ts | 10+++++-----
Mcommon/lib/ttsApps.ts | 21++++++++++++---------
Mcommon/lib/ttsChunk.test.ts | 44++++++++++++++++++++++++++++++++++++--------
Mcommon/lib/ttsChunk.ts | 46+++++++++++++++++++++++++++++++++-------------
Mcommon/lib/ttsSettings.test.ts | 6+++---
Mcommon/lib/ttsSettings.ts | 2+-
Meditor/CHANGELOG.md | 1+
Meditor/app/api/ops/tts/route.ts | 2+-
10 files changed, 95 insertions(+), 43 deletions(-)

diff --git a/SETTINGS.md b/SETTINGS.md @@ -898,7 +898,7 @@ Local text-to-speech (release 25): narration for report videos and podcasts, syn | Key | Default | Description | |---|---|---| | `engine` | `"kokoro"` | The engine a synthesis uses when the request names none: `kokoro` (Kokoro-82M, Apache-2.0, CPU; installed by `archilyzer tts setup`), `orpheus` (Orpheus 3B, Llama 3.2 Community License + Apache-2.0, "Built with Llama"; GPU, on a local llama-server — `tts.orpheus`; `archilyzer tts setup --engine orpheus`) or `espeak-ng` (the zero-install fallback). An unknown id falls back to `kokoro`. | -| `voice` | `"af_heart"` | The engine's stock voice when the request names none (stock voices only: no cloning, no reference audio). For Kokoro, `a*` voices are American English and `b*` British; `af_heart` was picked by ear in the release 25 bake-off. Orpheus: tara leah jess leo dan mia zac zoe — `leah` its default, `zac` the male option. A voice the engine does not have falls back to the engine's default. | +| `voice` | `"af_heart"` | The engine's stock voice when the request names none (stock voices only: no cloning, no reference audio). For Kokoro, `a*` voices are American English and `b*` British; `af_heart` was picked by ear in the release 25 bake-off. Orpheus: tara leah jess leo dan mia zac zoe — `zac` its default, `leah` the female option. A voice the engine does not have falls back to the engine's default. | | `speed` | `1` | Speaking pace, 1 = the engine's natural pace (Kokoro speaks briskly; 0.9 slows it). Clamped to the engine's range: [0.5, 2] for Kokoro and espeak-ng; Orpheus has none (1). In the cache key: a new speed is a new synthesis. | | `home` | `""` | Where `archilyzer tts setup` installs engines, one directory per engine (`<home>/kokoro`: its python venv and model files). Blank = `~/.local/share/archilyzer/tts`. Absolute, or `~/`-relative. | | `dir` | `""` | The synthesis cache: `<sha256>.wav` (48 kHz mono 16-bit) and a `<sha256>.json` sidecar (engine, model, licence, voice, seconds, disclosure) per distinct (engine, model, voice, speed, normalized text) — a re-ask is free. Never inside the corpus (refused). Blank = `<repo>/.tts/cache` (gitignored). Absolute, or `~/`-relative. | diff --git a/common/controller/ttsFile.test.ts b/common/controller/ttsFile.test.ts @@ -304,7 +304,7 @@ test("a failing engine fails the job with its words, and leaves no cache entry", // --- Orpheus (T1b): the refusals, the GPU wait, the server, the input ------------ -test("Orpheus requests: leah by default, a stock voice, no speed but 1", () => { +test("Orpheus requests: zac by default, a stock voice, no speed but 1", () => { const tts = { engine: "orpheus", voice: "leah", speed: 1 }; const r = resolveTtsRequest({}, "Back in 2024 <chuckle> it ended.", tts); assert.ok(r.ok); @@ -313,7 +313,7 @@ test("Orpheus requests: leah by default, a stock voice, no speed but 1", () => { assert.equal(r.value.spoken, "Back in twenty twenty-four <chuckle> it ended."); } const k = resolveTtsRequest({ engine: "orpheus" }, "x", { engine: "kokoro", voice: "af_heart", speed: 0.9 }); - assert.ok(k.ok && k.value.voice === "leah" && k.value.speed === 1, "Kokoro's speed setting is not Orpheus's"); + assert.ok(k.ok && k.value.voice === "zac" && k.value.speed === 1, "Kokoro's speed setting is not Orpheus's"); const cases: [Parameters<typeof resolveTtsRequest>[0], string, RegExp][] = [ [{ engine: "orpheus", voice: "af_heart" }, "x", /orpheus has no stock voice "af_heart" — its voices: tara, leah, jess, leo, dan, mia, zac, zoe/], [{ engine: "orpheus", voice: "/home/someone/reference.wav" }, "x", /orpheus has no stock voice/], diff --git a/common/lib/ttsApps.test.ts b/common/lib/ttsApps.test.ts @@ -39,7 +39,7 @@ test("the registry: kokoro (af_heart) is the default, espeak-ng the zero-install } assert.deepEqual( listTtsEngines().map((e) => [e.id, e.defaultVoice]), - [["kokoro", "af_heart"], ["espeak-ng", "en-us"], ["orpheus", "leah"]], + [["kokoro", "af_heart"], ["espeak-ng", "en-us"], ["orpheus", "zac"]], ); }); @@ -110,11 +110,11 @@ test("the disclosure names the engine and voice, plus any attribution its licenc ); }); -test("Orpheus: eight stock voices, leah by default, no speed control, the Llama licence and attribution", () => { +test("Orpheus: eight stock voices, zac by default, no speed control, the Llama licence and attribution", () => { const o = getTtsEngine("orpheus")!; assert.deepEqual([...o.voices], ["tara", "leah", "jess", "leo", "dan", "mia", "zac", "zoe"]); - assert.equal(o.defaultVoice, "leah"); - assert.ok(o.voices.includes("zac")); + assert.equal(o.defaultVoice, "zac"); + assert.ok(o.voices.includes("leah")); assert.deepEqual([...o.speedRange], [1, 1]); assert.equal(o.license, "Llama 3.2 Community License + Apache-2.0"); assert.equal(ttsDisclosure(o, "leah"), "Narration: synthetic voice (Orpheus 3B · leah). Built with Llama"); @@ -170,7 +170,7 @@ test("Orpheus's input is the editor's chunks, budgets, sampler and takes; the wr assert.deepEqual( input.chunks.map((c: { text: string; ends: string; pauseAfter: number }) => [c.text, c.ends, c.pauseAfter]), [ - ["One file. No title. Just a date.", "paragraph", 0.6], + ["One file. No title. Just a date.", "paragraph", 0.4], ["And then... there it was. <gasp>", "end", 0], ], ); diff --git a/common/lib/ttsApps.ts b/common/lib/ttsApps.ts @@ -202,20 +202,23 @@ const kokoro: TtsEngine = { // Orpheus 3B 0.1-ft (Q8_0 GGUF) on llama.cpp's server, its SNAC 24 kHz codes // decoded by the ONNX decoder on the CPU — the tuned round of 2026-10-11. GPU // (Vulkan) by default, behind the machine's heavy slot. Its eight stock -// speakers; leah the default, zac the male option. Tags are performed, so they +// speakers; zac the default (the operator's pick by ear, 2026-10-12, on a commentary script), leah the female option. Tags are performed, so they // are kept; numbers, years and the rest are spoken by the shared normalizer // with the guarded year rule ("1950 people" is a count). No speed control. export const ORPHEUS_VOICES = ["tara", "leah", "jess", "leo", "dan", "mia", "zac", "zoe"] as const; -// The tuned round's sampler (its report, "Sampler choice"): the repeat penalty -// on with a 64-token window — `repeat_last_n` 0 would DISABLE it in llama.cpp, -// and -1 is refused by the bundled build. +// The sampler the operator picked by ear on a commentary script (2026-10-12, +// ~/reports/tts-audition-quartering, variant D3): cooler than the tuned round's +// 0.7/0.9 (less over-acting), and a repeat penalty of 1.2 (Orpheus reads quicker +// and looser as it rises: less over-enunciation). The penalty's 64-token window +// stays — `repeat_last_n` 0 would DISABLE it in llama.cpp, and -1 is refused by +// the bundled build. export const ORPHEUS_SAMPLER = { - temperature: 0.7, - top_p: 0.9, + temperature: 0.55, + top_p: 0.85, top_k: 50, min_p: 0, - repeat_penalty: 1.1, + repeat_penalty: 1.2, repeat_last_n: 64, presence_penalty: 0, frequency_penalty: 0, @@ -246,13 +249,13 @@ export const ORPHEUS_FILES: readonly TtsModelFile[] = [ const orpheus: TtsEngine = { id: "orpheus", label: "Orpheus 3B", - model: "orpheus-3b-0.1-ft Q8_0 + snac_24khz decoder (tuned 2026-10-11)", + model: "orpheus-3b-0.1-ft Q8_0 + snac_24khz decoder (tuned 2026-10-12)", license: "Llama 3.2 Community License + Apache-2.0", attribution: "Built with Llama", device: "gpu", runtime: "server", voices: ORPHEUS_VOICES, - defaultVoice: "leah", + defaultVoice: "zac", speedRange: [1, 1], normalize: (text) => normalizeTtsText(text, { tags: "keep", years: "guarded", paragraphs: "keep" }), setup: { diff --git a/common/lib/ttsChunk.test.ts b/common/lib/ttsChunk.test.ts @@ -1,6 +1,17 @@ import { test } from "node:test"; import assert from "node:assert/strict"; -import { CHUNK_MAX_CHARS, chunkTtsText, nPredictFor, splitLong, splitSentences, wordsIn } from "./ttsChunk"; +import { + CHUNK_MAX_CHARS, + CHUNK_PAUSE, + chunkTtsText, + NPREDICT_MIN_EXPECTED_S, + nPredictFor, + ORPHEUS_TOKENS_PER_AUDIO_S, + splitLong, + splitSentences, + type TtsChunking, + wordsIn, +} from "./ttsChunk"; import { normalizeTtsText } from "./ttsText"; // Run with: @@ -12,6 +23,8 @@ import { normalizeTtsText } from "./ttsText"; // pasted here as data. const ORPHEUS = { tags: "keep", years: "guarded", paragraphs: "keep" } as const; +// The tuned round's limits (2026-10-11), which these pasted chunks were made with. +const TUNED_ROUND: TtsChunking = { maxChars: 250, maxSentences: 3, pause: { sentence: 0.3, clause: 0.15, paragraph: 0.6, end: 0 } }; const LINES: Record<string, string> = { "card": "Two weeks later, the same channel posted the opposite claim — and deleted the first video.", "numbers": "On March 14th, 2024, he said fifteen thousand people watched; the stream's own counter showed 3,812.", @@ -171,20 +184,20 @@ const N_PREDICT: Record<string, number> = { test("every bake-off line chunks exactly as the tuned pipeline did", () => { for (const [key, text] of Object.entries(LINES)) { - assert.deepEqual(chunkTtsText(normalizeTtsText(text, ORPHEUS)), EXPECTED[key], key); + assert.deepEqual(chunkTtsText(normalizeTtsText(text, ORPHEUS), TUNED_ROUND), EXPECTED[key], key); } }); test("the pipeline's own chunker assertions", () => { - const pod = chunkTtsText(normalizeTtsText(LINES.podcast, ORPHEUS)); - assert.ok(pod.every((c) => c.text.length <= CHUNK_MAX_CHARS)); + const pod = chunkTtsText(normalizeTtsText(LINES.podcast, ORPHEUS), TUNED_ROUND); + assert.ok(pod.every((c) => c.text.length <= TUNED_ROUND.maxChars)); assert.ok(pod.length >= 2 && pod.length <= 4); assert.equal(pod[pod.length - 1].ends, "end"); assert.ok(pod.slice(0, -1).every((c) => c.ends === "sentence")); - const q = chunkTtsText(normalizeTtsText(LINES["quote-tagged"], ORPHEUS)); + const q = chunkTtsText(normalizeTtsText(LINES["quote-tagged"], ORPHEUS), TUNED_ROUND); assert.equal(q.length, 1); assert.ok(q[0].text.includes("<chuckle>")); - const st = chunkTtsText(normalizeTtsText(LINES.story, ORPHEUS)); + const st = chunkTtsText(normalizeTtsText(LINES.story, ORPHEUS), TUNED_ROUND); assert.equal(st.filter((c) => c.ends === "paragraph").length, LINES.story.split("\n\n").length - 1); assert.ok(st.map((c) => c.text).join("").includes("<gasp>")); assert.ok(st.every((c) => c.pauseAfter === { sentence: 0.3, clause: 0.15, paragraph: 0.6, end: 0 }[c.ends])); @@ -192,9 +205,9 @@ test("the pipeline's own chunker assertions", () => { test("a long sentence is cut at clause boundaries, never mid-phrase", () => { const long = "word ".repeat(20) + "and this keeps going; " + "more words here, ".repeat(12) + "but then it ends."; - const parts = splitLong(long); + const parts = splitLong(long, TUNED_ROUND.maxChars); assert.deepEqual(parts, ["word word word word word word word word word word word word word word word word word word word word and this keeps going;", "more words here, more words here, more words here, more words here, more words here, more words here, more words here, more words here, more words here, more words here, more words here, more words here, but then it ends."]); - assert.ok(parts.every((p) => p.length <= CHUNK_MAX_CHARS)); + assert.ok(parts.every((p) => p.length <= TUNED_ROUND.maxChars)); }); test("sentences: a reaction tag joins the sentence before it; an ellipsis continues one", () => { @@ -211,3 +224,18 @@ test("the token budget follows the words, tags and beats", () => { for (const [text, n] of Object.entries(N_PREDICT)) assert.equal(nPredictFor(text), n, text); assert.equal(nPredictFor("x") % 7, 0); }); + +test("the defaults: longer chunks and shorter joins than the tuned round (the operator's pick, 2026-10-12)", () => { + assert.equal(CHUNK_MAX_CHARS, 420); + assert.deepEqual({ ...CHUNK_PAUSE }, { sentence: 0.2, clause: 0.1, paragraph: 0.4, end: 0 }); + const story = chunkTtsText(normalizeTtsText(LINES.podcast, ORPHEUS)); + const round = chunkTtsText(normalizeTtsText(LINES.podcast, ORPHEUS), TUNED_ROUND); + assert.ok(story.length < round.length, `${story.length} chunks by default, ${round.length} at the tuned round's limits`); + assert.ok(story.every((c) => c.text.length <= 420)); +}); + +test("a four-word line gets at least four seconds of budget", () => { + const n = nPredictFor("Well, then this drops."); + assert.ok(n >= NPREDICT_MIN_EXPECTED_S * ORPHEUS_TOKENS_PER_AUDIO_S * 1.6, String(n)); + assert.equal(n % 7, 0); +}); diff --git a/common/lib/ttsChunk.ts b/common/lib/ttsChunk.ts @@ -3,12 +3,12 @@ // `chunk()`), with its expected-length budget. // // Normalized text (lib/ttsText.ts, paragraphs kept as "\n\n") → chunks of 1–3 -// sentences, at most 250 characters, packed for the fewest chunks first and +// sentences, at most 420 characters, packed for the fewest chunks first and // then the most even lengths. A fragment under six words ("No title.") counts // as half a sentence. A sentence over the limit is cut at `; :` first, then at // a comma before a conjunction, then at any comma — never mid-phrase. A blank // line always ends a chunk. Each chunk carries the pause that follows it, by -// how it ended: a sentence 0.30 s, a clause 0.15 s, a paragraph 0.60 s, +// how it ended: a sentence 0.20 s, a clause 0.10 s, a paragraph 0.40 s, // nothing after the last. // // Pure, no imports beyond the tag set. scripts/tts_orpheus.py renders what @@ -16,13 +16,28 @@ import { TTS_EXPRESSIVE_TAGS } from "./ttsText"; -export const CHUNK_MAX_CHARS = 250; -export const CHUNK_MAX_SENTENCES = 3; -export const CHUNK_PAUSE = { sentence: 0.3, clause: 0.15, paragraph: 0.6, end: 0 } as const; +// Longer chunks and shorter joins than the tuned round's 250/3 and 0.3/0.15/0.6: +// fewer prosody restarts, which the operator heard as an inhuman cadence +// (2026-10-12, the commentary audition). +export const CHUNK_MAX_CHARS = 420; +export const CHUNK_MAX_SENTENCES = 5; +export const CHUNK_PAUSE = { sentence: 0.2, clause: 0.1, paragraph: 0.4, end: 0 } as const; export type ChunkEnding = keyof typeof CHUNK_PAUSE; export type TtsChunk = { text: string; ends: ChunkEnding; pauseAfter: number }; +// The limits a chunking uses; the defaults are the constants above. +export type TtsChunking = { + maxChars: number; + maxSentences: number; + pause: Record<ChunkEnding, number>; +}; +export const DEFAULT_TTS_CHUNKING: TtsChunking = { + maxChars: CHUNK_MAX_CHARS, + maxSentences: CHUNK_MAX_SENTENCES, + pause: CHUNK_PAUSE, +}; + const TAG = `<(?:${TTS_EXPRESSIVE_TAGS.join("|")})>`; const TAG_G = new RegExp(TAG, "g"); const CONJ = @@ -72,7 +87,7 @@ export function splitLong(s: string, limit = CHUNK_MAX_CHARS): string[] { } // Balanced packing (DP): fewest chunks, then the least sum of squared lengths. -function pack(units: string[]): string[] { +function pack(units: string[], lim: TtsChunking): string[] { const n = units.length; const wt = units.map((u) => (wordsIn(u) < 6 ? 0.5 : 1)); const best: [number, number, number][] = [[0, 0, -1]]; @@ -82,7 +97,7 @@ function pack(units: string[]): string[] { for (let j = i - 1; j >= 0; j--) { w += wt[j]; const L = units.slice(j, i).join(" ").length; - if (i - j > 1 && (L > CHUNK_MAX_CHARS || w > CHUNK_MAX_SENTENCES)) break; + if (i - j > 1 && (L > lim.maxChars || w > lim.maxSentences)) break; const c: [number, number, number] = [best[j][0] + 1, best[j][1] + L * L, j]; if (c[0] < best[i][0] || (c[0] === best[i][0] && c[1] < best[i][1])) best[i] = c; } @@ -98,17 +113,17 @@ function ending(text: string): ChunkEnding { } /** Normalized text (paragraphs as "\n\n") → chunks, each with the pause after it. */ -export function chunkTtsText(normalized: string): TtsChunk[] { +export function chunkTtsText(normalized: string, lim: TtsChunking = DEFAULT_TTS_CHUNKING): TtsChunk[] { const paras = normalized.split("\n\n").filter((p) => p.trim()); const chunks: TtsChunk[] = []; paras.forEach((par, pi) => { - const units = splitSentences(par).flatMap((s) => splitLong(s)); - const packed = pack(units); + const units = splitSentences(par).flatMap((s) => splitLong(s, lim.maxChars)); + const packed = pack(units, lim); packed.forEach((text, ci) => { const lastInPar = ci === packed.length - 1; const ends: ChunkEnding = lastInPar && pi === paras.length - 1 ? "end" : lastInPar ? "paragraph" : ending(text); - chunks.push({ text, ends, pauseAfter: CHUNK_PAUSE[ends] }); + chunks.push({ text, ends, pauseAfter: lim.pause[ends] }); }); }); return chunks; @@ -117,14 +132,19 @@ export function chunkTtsText(normalized: string): TtsChunk[] { // SNAC 24 kHz: 7 tokens per frame of 2048 samples — 82.03 tokens a second of audio. export const ORPHEUS_TOKENS_PER_AUDIO_S = (7 * 24000) / 2048; +// The least a chunk's budget expects, in seconds of audio. +export const NPREDICT_MIN_EXPECTED_S = 4; + /** * The token budget for one chunk: its expected seconds × 82.03 tokens/s × 1.6, * rounded up to a whole 7-token frame, so a runaway take is cut (and flagged, - * never kept). Expected seconds = words ÷ 2.5 + 0.9 a tag + 0.3 an "..." + 0.6. + * never kept). Expected seconds = words ÷ 2.5 + 0.9 a tag + 0.3 an "..." + 0.6, + * at least NPREDICT_MIN_EXPECTED_S: a four-word line ("Well, then this drops.") + * was cut on every take at its 2.2 s budget and failed the synthesis. */ export function nPredictFor(text: string): number { const tags = (text.match(TAG_G) ?? []).length; const ellipses = text.split("...").length - 1; - const expS = wordsIn(text) / 2.5 + 0.9 * tags + 0.3 * ellipses + 0.6; + const expS = Math.max(NPREDICT_MIN_EXPECTED_S, wordsIn(text) / 2.5 + 0.9 * tags + 0.3 * ellipses + 0.6); return Math.ceil((expS * ORPHEUS_TOKENS_PER_AUDIO_S * 1.6) / 7) * 7; } diff --git a/common/lib/ttsSettings.test.ts b/common/lib/ttsSettings.test.ts @@ -43,11 +43,11 @@ test("home and dir: blank is the Paths default, ~/ expands, a relative path is d assert.equal(sanitizeTts({ home: 7 }).home, ""); }); -test("orpheus: leah by default, speed held at 1, its server block sanitized", () => { +test("orpheus: zac by default, speed held at 1, its server block sanitized", () => { const o = sanitizeTts({ engine: "orpheus", speed: 0.8 }); - assert.equal(o.voice, "leah"); + assert.equal(o.voice, "zac"); assert.equal(o.speed, 1); - assert.equal(sanitizeTts({ engine: "orpheus", voice: "zac" }).voice, "zac"); + assert.equal(sanitizeTts({ engine: "orpheus", voice: "leah" }).voice, "leah"); assert.deepEqual(DEFAULT_ORPHEUS_TTS_SETTINGS, { serverBin: "/usr/lib/ollama/llama-server", libraryPath: "/usr/lib/ollama", diff --git a/common/lib/ttsSettings.ts b/common/lib/ttsSettings.ts @@ -99,7 +99,7 @@ export const TTS_SETTINGS_FIELD_DOCS: FieldDocs<TtsSettings> = { "The engine's stock voice when the request names none (stock voices only: no " + "cloning, no reference audio). For Kokoro, `a*` voices are American English and " + "`b*` British; `af_heart` was picked by ear in the release 25 bake-off. Orpheus: " + - "tara leah jess leo dan mia zac zoe — `leah` its default, `zac` the male option. A voice the " + + "tara leah jess leo dan mia zac zoe — `zac` its default, `leah` the female option. A voice the " + "engine does not have falls back to the engine's default.", speed: "Speaking pace, 1 = the engine's natural pace (Kokoro speaks briskly; 0.9 slows it). " + diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **Orpheus speaks as the operator picked by ear: zac, calmer, quicker, in longer runs.** The default Orpheus voice is now `zac` (leah stays available); the sampler is cooler (temperature 0.55, top_p 0.85) and its repeat penalty higher (1.2), which reads less acted and less over-enunciated; a chunk holds up to 5 sentences and 420 characters, with shorter joins (0.2 s after a sentence, 0.1 s after a clause, 0.4 s after a paragraph), so the voice restarts its phrasing less often; and a very short line gets at least four seconds of budget, so it can no longer fail every take. Orpheus narration made before this is made again the next time it is asked for. Needs a restart of the editor. - **A site's reports are its pages.** site.json `reports` is now `pages` (a file that still says `reports` reads as `pages` for this release; saving writes `pages`). Each page is served at `/pages/<id>/` and linked from the site's header by its title, after Ask AI; there is no Reports index any more. A site with search off shows its first page as its home, and saving a site with search off and no pages is refused. The site form lists them as **Pages**. Rebuild each site that has pages. - **Site ids `articles` and `new` are refused.** The editor's `/sites/articles` and `/sites/new` (and umtool's `articles/`) would hide a site of either name, so a save under one is refused, naming why. - **Orpheus 3B narrates too, on the GPU.** `pnpm ops tts` takes `"engine": "orpheus"` — Orpheus 3B with one of its eight stock speakers (`leah` by default, `zac` the male option, then tara, jess, leo, dan, mia, zoe), which performs the expressive tags (`<laugh>`, `<sigh>`, …) instead of dropping them. It runs on a local llama-server the editor starts for a batch of syntheses — after waiting for the machine's heavy slot and for any transcription on the GPU to finish — and stops once nothing more is queued, so its 4–5 GB of video memory is freed; the server's binary, libraries, port and GPU layers are `settings.tts.orpheus` (Ollama's bundled Vulkan build by default). Each chunk of 1–3 sentences gets up to three takes and the first that passes the checks is kept (it ended, no broken frames, a sane pace, no dead air); a chunk where none passes is kept anyway and flagged in the job's log and the sidecar. Its disclosure line ends "Built with Llama", as its licence (Llama 3.2 Community License + Apache-2.0) asks. About 1.8× slower than real time. `archilyzer tts setup --engine orpheus [--from <dir>]` installs it (3.5 GB of model). Needs a restart of the editor. diff --git a/editor/app/api/ops/tts/route.ts b/editor/app/api/ops/tts/route.ts @@ -14,7 +14,7 @@ export const dynamic = "force-dynamic"; // never synthesized by hand. `text` is the words, or `file` an absolute path to // a UTF-8 text file holding them (at most 20,000 characters); `engine` // (`kokoro` | `orpheus` | `espeak-ng`), `voice` (one of the engine's stock -// voices; Orpheus: leah by default, zac the male option) and `speed` (0.5-2; +// voices; Orpheus: zac by default, leah the female option) and `speed` (0.5-2; // Orpheus has none) default to settings.tts (kokoro · af_heart · 1); `out` is // an absolute .wav path the result is copied to. The expressive tags // (`<laugh>`, `<sigh>`, ... lib/ttsText.ts TTS_EXPRESSIVE_TAGS) are performed by