docs: voice track

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-19 16:11:50 +02:00
1 parent 625a0d9392
commit 025d0ea118
4 files changed
+64 -2

No files matched your search

+8
View File
@@ -22,6 +22,14 @@ gitignored and never redistributed.
The Gutenberg text was transcribed by Ramón Pajares Box and the Distributed Proofreaders
(PGDP) team. Thanks to them.
## Voice
The German voice track is cut from LibriVox's dramatic reading "Faust: Der Tragödie erster Teil"
(https://librivox.org/faust-der-tragoedie-erster-teil-by-johann-wolfgang-von-goethe/), a
public-domain recording by many volunteer readers. The German text used for alignment is
Project Gutenberg #2229 (gitignored, not redistributed). Readers are credited in the game
(`[voice].credits` in `work.toml`).
## Images
All images (backgrounds, sprites, portraits) are AI-generated with ChatGPT image
+49
View File
@@ -0,0 +1,49 @@
# Voice track (German original under the Spanish text)
The German original of *Faust I* is read by LibriVox's public-domain dramatic reading
("Faust: Der Tragödie erster Teil", one reader per role, 28 sections = our 28 scenes in order).
`vnpipe voice` (see `../vnpipe/docs/voice.md`) cuts one clip per German speech and the game plays
it under the matching Spanish speech. Speeches it cannot map with confidence stay silent.
## Data
- `work.toml` `[voice]`: source URLs, `scenes` (the pilot subset; delete the key to run all 28),
`[voice.asr]` (GPU host), `[voice.speakers]` (German label -> cast id), `[[voice.sections]]`
(scene id, audio section number, German heading), `credits` (the "Voces" credits section).
- `voice/asr/NN.json`: faster-whisper word timestamps per section. Committed, so everything
after ASR is local and deterministic.
- `voice/map.json`, `voice/report/<scene>.txt`: speech mapping and per-scene coverage report.
- `voice/clips/<first Spanish line id>.ogg`: mono Opus 40 kbps, loudness-normalised
(about 5 KB/s). Copied by `vnpipe renpy` to `vn/game/voice/` (gitignored there).
- `data/raw/librivox/NN.mp3` and `data/raw/pg2229.txt` (German text, Gutenberg #2229): gitignored.
## Run it
```sh
export UV_CACHE_DIR=$TMPDIR/uv-cache
uv run vnpipe voice fetch # mp3s + German text
uv run vnpipe voice asr # GPU host from [voice.asr]; skips sections already in voice/asr
uv run vnpipe voice build # align + map + reports
uv run vnpipe voice cut # clips
uv run vnpipe renpy # voice statements, clips, credits
```
Add `--scenes a,b` to restrict. Unreleased vnpipe: `uv run --with-editable ../vnpipe ...`.
## Scenes done and coverage
| Scene | Voiced speeches | ASR coverage |
|---|---|---|
| `calle_1` | 23/25 | 92.4 % |
| `jardin_marta` | 41/42 | 94.6 % |
The unvoiced ones are speeches Llorente added or merged (see the reports).
## Notes
- Llorente keeps the order of speeches, but he sometimes adds a speech, merges two or rewrites
an exchange; those are dropped by the length-ratio check. The Spanish text is a verse
translation, so a clip follows the German meaning, not the Spanish words.
- Pronunciation and reader quality vary per role; the narrator's speaker-name readings
are excluded by alignment, not by hand.
- Licensing: LibriVox recordings are public domain; credits list the readers (`[voice].credits`).