mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 15:26:20 +00:00
docs: voice track
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
625a0d9392
commit
025d0ea118
4 files changed
+64
-2
No files matched your search
@@ -10,6 +10,8 @@ Faust I (Spanish, Llorente) as a Ren'Py visual novel. This repo is a *work*: the
|
||||
- `vn/` is generated by `vnpipe renpy`; never edit it by hand.
|
||||
- Every stage must be deterministic and idempotent; LLM/image outputs are cached by input hash.
|
||||
- ChatGPT image MCP: max 20 generations per hour.
|
||||
- Voice: `voice/asr/*.json` (GPU ASR cache) and `voice/clips/*.ogg` are committed; only the raw
|
||||
mp3s and German text are gitignored. Never put voice clips under `audio/` (they would become music moods).
|
||||
|
||||
## Commands
|
||||
- `export UV_CACHE_DIR=$TMPDIR/uv-cache` first when running inside the sandbox.
|
||||
@@ -17,7 +19,7 @@ Faust I (Spanish, Llorente) as a Ren'Py visual novel. This repo is a *work*: the
|
||||
- To test against an unmerged vnpipe worktree: `uv run --with-editable <vnpipe worktree> pytest -q`
|
||||
(and `--project <vnpipe worktree> vnpipe --work . parse` to run a stage).
|
||||
- `uv run vnpipe --help` — pipeline CLI (the work is the repo root). Stages: `fetch`, `parse`,
|
||||
`annotate {run,status,prompt,merge}`, `assets {...}`, `renpy [--with-test --out DIR]`.
|
||||
`annotate {run,status,prompt,merge}`, `assets {...}`, `voice {fetch,asr,build,cut}` (`docs/voice.md`), `renpy [--with-test --out DIR]`.
|
||||
- Ren'Py SDK lives in `tools/renpy-sdk` (gitignored; may be a symlink shared between worktrees)
|
||||
or `RENPY_SDK`. Inside the sandbox prefix SDK commands with `HOME=$TMPDIR/renpy-home`.
|
||||
Lint: `tools/renpy-sdk/renpy.sh vn lint`. Playthrough test and builds: `docs/running.md`.
|
||||
@@ -32,4 +34,4 @@ Faust I (Spanish, Llorente) as a Ren'Py visual novel. This repo is a *work*: the
|
||||
- CI (`.github/workflows/ci.yml`) runs ruff and pytest; it needs vnpipe available (see the TODO there).
|
||||
|
||||
## Layout
|
||||
`work.toml`, `data/`, `annotations/`, `assets/`, `vn/`, `tests/`, `docs/`; see `docs/plan.md`.
|
||||
`work.toml`, `data/`, `annotations/`, `assets/`, `voice/`, `vn/`, `tests/`, `docs/`; see `docs/plan.md`.
|
||||
@@ -16,6 +16,9 @@ The game is in Spanish. Art is AI-generated (see [docs/licensing.md](docs/licens
|
||||
their own piece (Mephisto Waltz in Auerbach's tavern, Dies irae in the cathedral, Gretchen am
|
||||
Spinnrade in Margarita's room, Bach's Easter cantata for the Easter choruses). See
|
||||
[docs/music.md](docs/music.md).
|
||||
- **Voice (pilot)**: the German original read by LibriVox's public-domain dramatic reading
|
||||
plays under the Spanish text, like subtitled anime; two scenes so far (`calle_1`,
|
||||
`jardin_marta`). Volume slider in Preferences. See [docs/voice.md](docs/voice.md).
|
||||
- **Main menu**: title and subtitle over the study, *Escenas* (replay any scene you have
|
||||
reached) and *Créditos* (text, art and music attributions).
|
||||
- **Reading**: each scene opens with a title card (heading plus place and time); text types at
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`).
|
||||
Reference in new issue
Block a user