Dialogue links: place generic speech lines by the speaker's speech voice #547
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!547
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-547"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCGeneric speech waves (a context each character voice records, such as
REACT_BEAT_INTERESTING_HIGH_01) sit in several banks, one per voice. Until nowdialogue-linkspicked 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 instory000.The pack's speech file (schema 18) says which bank each voice uses directly:
jason,lucia). It holds a u32 count, then entries of{u32 context hash, u16 bank ref, u16 takes}, sorted by hash._NNtake.rnames the 5-byte class-2 object whose name hash isr. That object holds the bank's container hash after its class byte.Changes
audio-metadecodes the voices and writes<work>/index/audio_voices_<archive>.json. Onstory000that is 2,422 voices and 176,685 contexts, and every bank ref resolves.dialogue-linksfirst 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_banksnow counts both rules separately.Result on
story000The 19,896
AD_*ambient-dialogue waves are still unlinked. Their contexts are in no speech file ofstory000oraudio.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.