103 lines
4.7 KiB
Markdown
103 lines
4.7 KiB
Markdown
# The Midnight Invitation voice audition
|
|
|
|
The comparison starts at “At the door I knocked twice” and ends at “Hurry.”
|
|
It includes Elias and Iris, both warnings, and the reveal at the letter flap.
|
|
The existing Kokoro recording lasts about 50 seconds for this excerpt.
|
|
|
|
All outputs go to `artifacts/voice-audition/`. Production story assets and
|
|
manifests are not modified. Each engine gets a dry master, a loudness matched
|
|
master, and a mix with the same threshold ambience at 0.07 gain. New readings
|
|
retain the script's pauses, Foley and behind-door filter. Delivery duration is
|
|
allowed to vary; audio is not stretched to match the baseline.
|
|
|
|
## Generate
|
|
|
|
Preparation requires Python and `ffmpeg`:
|
|
|
|
```sh
|
|
python3 scripts/render_voice_audition.py prepare
|
|
```
|
|
|
|
Use separate Python 3.12 environments for Qwen and Chatterbox because their
|
|
Transformers requirements differ. Install a matching `torch` / `torchaudio`
|
|
pair first, using CPU wheels or ROCm wheels appropriate to the actual host.
|
|
Then install `qwen-tts==0.1.1 soundfile` in the Qwen environment and
|
|
`chatterbox-tts==0.1.7 soundfile` in the Chatterbox environment. Check that
|
|
installing the speech packages preserves your selected PyTorch build.
|
|
|
|
Run with the corresponding environment's Python:
|
|
|
|
```sh
|
|
python scripts/render_voice_audition.py qwen --device auto
|
|
python scripts/render_voice_audition.py chatterbox --device auto
|
|
```
|
|
|
|
`--device cpu` explicitly selects CPU; `--device cuda` requires GPU access.
|
|
PyTorch uses the `cuda` device name for AMD ROCm as well. Qwen uses FP32 on
|
|
CPU and FP16 on GPU, with eager attention rather than FlashAttention.
|
|
Qwen synthesis has been verified on the RX 6800 with these settings.
|
|
|
|
The first run downloads Hugging Face weights. Set `HF_HOME` to a writable
|
|
cache directory when needed. Successful raw takes are cached so interrupted
|
|
runs can resume. Use a fresh `--out` directory and run `prepare` there before
|
|
changing prompts, seed, model settings or devices for a new experiment.
|
|
|
|
## What differs
|
|
|
|
- **Kokoro:** the existing `bm_george` / `bf_emma` performances.
|
|
- **Qwen:** VoiceDesign creates an original reference for each character from
|
|
the cast direction. The Base model reuses those references across lines.
|
|
This preserves character identity better than designing every line afresh.
|
|
- **Chatterbox:** existing synthetic Kokoro references anchor both character
|
|
identities; exaggeration is 0.65 and CFG weight is 0.3. Chatterbox does not
|
|
receive Qwen's natural language performance directions.
|
|
|
|
This compares practical production workflows, not identical voice identities.
|
|
The Qwen Base model carries delivery through its audio reference; it does not
|
|
receive a fresh emotion instruction on each line. Model-generated speech may
|
|
contain mistakes even when the input text is exact. Listen for omitted or
|
|
invented words and voice drift before accepting any take.
|
|
|
|
## Listen
|
|
|
|
Compare the `*-dry-mix.wav` files at the same player volume. Use
|
|
`*-dry-matched.wav` to judge speech without ambience. Check:
|
|
|
|
- Does Elias sound like someone remembering an experience?
|
|
- Is Iris's warning clear and quietly urgent?
|
|
- Does each character keep the same voice across lines?
|
|
- Are all words present and pronounced correctly?
|
|
- Do pauses and the final “Hurry” feel natural?
|
|
|
|
Per-engine provenance JSON records package versions, device, seed, settings,
|
|
script hash, duration and cue times. Timings from CPU runs are not RX 6800
|
|
benchmarks.
|
|
|
|
## Container GPU diagnosis
|
|
|
|
The host exposes a Navi 21 GPU in PCI sysfs (`1002:73bf`). The restricted
|
|
command sandbox hides `/dev/kfd` and `/dev/dri`, so `rocminfo` fails inside
|
|
that sandbox. Outside the command sandbox, the devices are present and
|
|
`rocminfo` identifies the AMD Radeon RX 6800 with target `gfx1030`.
|
|
Run GPU synthesis outside that sandbox using a compatible ROCm PyTorch build.
|
|
|
|
The isolated environment at `artifacts/voice-audition/runtime/rocm` uses
|
|
`torch==2.14.0+rocm10.1.0`, `torchaudio==2.11.0.3+rocm10.1.0` and the
|
|
`device-gfx1030` packages from AMD's stable index. GPU detection and an FP16
|
|
matrix multiplication passed on the RX 6800. Install with:
|
|
|
|
```sh
|
|
uv venv --python 3.12 artifacts/voice-audition/runtime/rocm
|
|
uv pip install --python artifacts/voice-audition/runtime/rocm/bin/python \
|
|
'torch[device-gfx1030]' torchaudio \
|
|
--index-url https://stable.repo.amd.com/rocm/whl-next/
|
|
uv pip install --python artifacts/voice-audition/runtime/rocm/bin/python \
|
|
qwen-tts==0.1.1 soundfile
|
|
```
|
|
|
|
Keep large caches and environments on the workspace disk. In this container,
|
|
`/tmp` is a RAM-backed filesystem: storing the models and ROCm runtime there
|
|
caused memory pressure. The model cache now lives at
|
|
`artifacts/voice-audition/model-cache`, with `/tmp/lumen-audition-hf` pointing
|
|
to it for compatibility with the original commands.
|