Enhance postcard puzzles and narration

This commit is contained in:
Hadrian Burkhardt
2026-11-14 08:55:48 +01:00
parent abaab927d9
commit b19295472d
158 changed files with 5257 additions and 1695 deletions
+26 -13
View File
@@ -65,30 +65,41 @@ Discovery artwork remains hidden until its own puzzle is solved.
## Recorded diary and atmosphere
Speech is generated offline with **Qwen3-TTS 1.7B VoiceDesign**, then bundled
as mono 24 kHz PCM16 WAV. Playback requires no model or download.
Speech is generated offline with Qwen3-TTS 1.7B and bundled as mono 24 kHz
PCM16 WAV. Iris and Ada retain VoiceDesign takes; Elias and his echo use the
Base model with one shared reference, to improve voice continuity. Playback
requires no model or download.
- Elias: an intimate, warm British baritone; a working postman recalling events.
- Iris: a soft, weary British voice, practical under pressure, warmer as hope grows.
- Ada: a mature, rounded British voice with crisp, protective authority.
- The borrowed voice and echo reuse Ada's and Elias's identity descriptions and
seeds, with familiar persuasion and a gentle behind-door filter.
- The borrowed voice uses Ada's identity description; the echo shares Elias's
fixed reference, with a gentle behind-door filter.
`narration/cast.json` holds the stable voice descriptions. The model, pinned
revision, global delivery instruction and all 26 scene directions live in
`narration/performance.json`. The compiler combines those with the manuscript,
assigns dialogue roles, and groups adjacent paragraphs into connected takes of
up to 90 words. Explicit Foley and dramatic silences remain take boundaries.
Stage directions go to the model's `instruct` input; they are never added to the
spoken text. Pacing uses prose, performance instructions and editorial pauses,
not time stretching.
For VoiceDesign takes, stage directions go to the model's `instruct` input;
they are never added to the spoken text. The reference-anchored Elias takes do
not use those instructions. Editorial pauses remain; there is no time stretching.
This production uses `generate_voice_design` for each take, so it can receive
scene-specific performance instructions directly. The earlier audition used
VoiceDesign references followed by the Base cloning model. Reusing descriptions
and seeds encourages voice continuity here but does not guarantee identical
timbre across independent takes; listen for drift as well as misread words.
The renderer records the exact instructions and model revision with every page.
Elias and the echo are regenerated with `scripts/render_elias_consistent.py`
using the archived `narration/references/elias.wav` VoiceDesign reference and
the pinned Qwen Base model. Iris, Ada
and the borrowed voice retain their original VoiceDesign takes. Base cloning
uses the reference and text; it does **not** consume the scene-specific
VoiceDesign instruction, so its delivery can differ from the directed takes.
The manifest's track-level engine identifies the default VoiceDesign source;
Elias and echo cues override it with their cloning model, reference hash and
batch seed. This improves identity consistency without guaranteeing identical
timbre. `scripts/review_elias_consistent.py` flags possible misreads; listening
remains necessary.
The VoiceDesign renderer below is the original pipeline. Publishing it again for
the whole story will replace the reference-anchored Elias takes; run the Elias
cloning renderer afterwards when rebuilding this mixed cast.
Small procedural knocks, chair movement and paper rustle fall in pauses, clear
of the words. One gain adjustment per page preserves the performance's dynamics.
@@ -110,6 +121,8 @@ HF_HOME="$PWD/artifacts/voice-audition/model-cache" \
artifacts/voice-audition/runtime/rocm/bin/python \
scripts/render_qwen_narration.py --device cuda --offline \
--batch-size 4 --attention sdpa --work artifacts/midnight-qwen-full --publish
HF_HOME="$PWD/artifacts/voice-audition/model-cache" HF_HUB_OFFLINE=1 PUBLISH_ELIAS=1 \
artifacts/voice-audition/runtime/rocm/bin/python scripts/render_elias_consistent.py
python3 scripts/render_drama_previews.py
```