Dialogue links: place generic speech lines by the speaker's speech voice #547

Manually merged
github merged 2 commits from github-bot/gh-547 into gh-pr/547/base 2026-11-28 06:57:14 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 06:43 UTC · original
holdmysocks:claude/dialogue-voice-hash → master · +218 −37 · 4 files · 2 commits · merged 2026-11-28 06:54 UTC

Generic speech waves (a context each character voice records, such as REACT_BEAT_INTERESTING_HIGH_01) sit in several banks, one per voice. Until now dialogue-links picked a line's bank only when the speaker had at least two lines in that bank's container that are in one bank only. That placed 242 of the 635 such lines in story000.

The pack's speech file (schema 18) says which bank each voice uses directly:

  • There is one object per voice, named like the character (jason, lucia). It holds a u32 count, then entries of {u32 context hash, u16 bank ref, u16 takes}, sorted by hash.
  • The context hash is joaat of the lower-case context name, without the final mix. The context is the wave without its _NN take.
  • A bank ref r names the 5-byte class-2 object whose name hash is r. That object holds the bank's container hash after its class byte.

Changes

  • audio-meta decodes the voices and writes <work>/index/audio_voices_<archive>.json. On story000 that is 2,422 voices and 176,685 contexts, and every bank ref resolves.
  • dialogue-links first takes the candidate bank in the container that the speaker's voice names for the wave's context. If that gives no bank, it falls back to the speaker's single-bank lines, as before. audio_from_voice_banks now counts both rules separately.
  • README and help text are updated. Tests cover the voice parser and the new pick.

Result on story000

  • 410 of 635 multi-bank lines are placed, up from 242. Every one of the old 242 picks gets the same bank from the voice rule.
  • 224 stay unplaced:
    • 206 have a speaker with no voice object;
    • 17 have a voice without the context;
    • 1 has a voice that names a container no candidate has.
  • No existing link changes, and none is lost.

The 19,896 AD_* ambient-dialogue waves are still unlinked. Their contexts are in no speech file of story000 or audio.rpf, no bank stores such a name, and no stream id matches the obvious name variants. Their audio seems not to be in this install.

**@⁠holdmysocks** on GitHub · 2026-11-28 06:43 UTC · [original](https://github.com/holdmysocks/SixNG/pull/547) `holdmysocks:claude/dialogue-voice-hash` → `master` · +218 −37 · 4 files · 2 commits · merged 2026-11-28 06:54 UTC Generic speech waves (a context each character voice records, such as `REACT_BEAT_INTERESTING_HIGH_01`) sit in several banks, one per voice. Until now `dialogue-links` picked a line's bank only when the speaker had at least two lines in that bank's container that are in one bank only. That placed 242 of the 635 such lines in `story000`. The pack's speech file (schema 18) says which bank each voice uses directly: - There is one object per voice, named like the character (`jason`, `lucia`). It holds a u32 count, then entries of `{u32 context hash, u16 bank ref, u16 takes}`, sorted by hash. - The context hash is joaat of the lower-case context name, without the final mix. The context is the wave without its `_NN` take. - A bank ref `r` names the 5-byte class-2 object whose name hash is `r`. That object holds the bank's container hash after its class byte. ## Changes - `audio-meta` decodes the voices and writes `<work>/index/audio_voices_<archive>.json`. On `story000` that is 2,422 voices and 176,685 contexts, and every bank ref resolves. - `dialogue-links` first takes the candidate bank in the container that the speaker's voice names for the wave's context. If that gives no bank, it falls back to the speaker's single-bank lines, as before. `audio_from_voice_banks` now counts both rules separately. - README and help text are updated. Tests cover the voice parser and the new pick. ## Result on `story000` - 410 of 635 multi-bank lines are placed, up from 242. Every one of the old 242 picks gets the same bank from the voice rule. - 224 stay unplaced: - 206 have a speaker with no voice object; - 17 have a voice without the context; - 1 has a voice that names a container no candidate has. - No existing link changes, and none is lost. The 19,896 `AD_*` ambient-dialogue waves are still unlinked. Their contexts are in no speech file of `story000` or `audio.rpf`, no bank stores such a name, and no stream id matches the obvious name variants. Their audio seems not to be in this install.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 06:44:45 +00:00
github-bot changed target branch from master to gh-pr/547/base 2026-11-28 06:57:12 +00:00
github manually merged commit 019684cc41 into gh-pr/547/base 2026-11-28 06:57:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.