Names: bank list containers, stream names and more audio bank names #208

Manually merged
github merged 1 commit from gh-pr/208/head into gh-pr/208/base 2026-11-26 20:18:15 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 20:58 UTC · original
holdmysocks:claude/audio-names-2 → master · +497 −55 · 5 files · 1 commits · merged 2026-11-24 21:50 UTC

Follow-up to #196 for SIX-101: names more audio banks and streams.

  • Bank list: a class-27 object in a schema-26 audio metadata file lists 5,955 banks as container, size and group, nearly in archive order. It has no offsets, so it is placed by bank size between the banks the sound files already pin (hold-out check: 901 of 908 placed right). Banks with a container: 3,713 -> 5,943 of 7,160.
  • Stream names: a stream id is the low 29 bits of joaat of the wave name. Dictionary words and text-table words with _01.._99 and _a.._z name 8,585 streams in 791 banks; a stem is kept only with three or more hits in one bank. Saved to <work>/index/audio_stream_names_<archive>.json.
  • Text-table words: data.rpf text strings as snake-case words (<work>/names/text_words.json, 596,618 words), used only for the bank and stream searches.
  • Bank names: pack x word search with a neighbour check, plus each bank's own stream stems: 691 -> 1,053 banks named.
  • sixng audio shows stream names; the GUI Audio page shows bank and stream names and searches them.
  • README updated. Tests use synthetic strings only.

Not named: 1,217 banks are in neither the sound files nor the bank list; about 4,900 containers (mostly radio idents and ads, speech and prop banks) have names in none of these sources; about 1 % of the kept bank names may be chance matches.

**@⁠holdmysocks** on GitHub · 2026-11-24 20:58 UTC · [original](https://github.com/holdmysocks/SixNG/pull/208) `holdmysocks:claude/audio-names-2` → `master` · +497 −55 · 5 files · 1 commits · merged 2026-11-24 21:50 UTC Follow-up to #196 for SIX-101: names more audio banks and streams. - **Bank list**: a class-27 object in a schema-26 audio metadata file lists 5,955 banks as container, size and group, nearly in archive order. It has no offsets, so it is placed by bank size between the banks the sound files already pin (hold-out check: 901 of 908 placed right). Banks with a container: 3,713 -> **5,943 of 7,160**. - **Stream names**: a stream id is the low 29 bits of joaat of the wave name. Dictionary words and text-table words with `_01`..`_99` and `_a`..`_z` name **8,585 streams in 791 banks**; a stem is kept only with three or more hits in one bank. Saved to `<work>/index/audio_stream_names_<archive>.json`. - **Text-table words**: data.rpf text strings as snake-case words (`<work>/names/text_words.json`, 596,618 words), used only for the bank and stream searches. - **Bank names**: pack x word search with a neighbour check, plus each bank's own stream stems: 691 -> **1,053 banks named**. - `sixng audio` shows stream names; the GUI Audio page shows bank and stream names and searches them. - README updated. Tests use synthetic strings only. Not named: 1,217 banks are in neither the sound files nor the bank list; about 4,900 containers (mostly radio idents and ads, speech and prop banks) have names in none of these sources; about 1 % of the kept bank names may be chance matches.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:18:14 +00:00
github manually merged commit 6b9793dbd5 into gh-pr/208/base 2026-11-26 20:18:15 +00:00
Author
Owner

@⁠kaoru-maki on GitHub · 2026-11-24 22:13 UTC · original

Independent check of 6b9793d on Xbox Series 1.0.2.1. A fresh SixNG dictionary reproduced the reported 8,585 suggestions across 791 banks in audio.rpf. I joined the proposals to a local RSC8 census by archive, bank offset and stream ID, checked stream index and encoded byte range, then read the RSC8 dictionary spelling from the original tag and recomputed its JOAAT.

Archive Suggestions Same native spelling Same low 29 bits, different full hash Same full hash, different native spelling RSC8 low 29 bits differ from AWC ID No RSC8 tag
audio.rpf 8,585 1,539 21 481 142 6,402
story000.rpf 1,412 528 29 755 0 100
shared_minigame000.rpf 13 0 3 10 0 0
story000_restofworld.rpf 0 0 0 0 0 0

In audio.rpf the 481 same-hash cases cover 89 distinct spelling pairs. A full-hash check alone would still accept those spellings as aliases. Streams without an RSC8 tag are outside this check, and the RSC8/AWC ID disagreements are kept separate from spelling conflicts.

A naming option would be to prefer the embedded spelling when its JOAAT equals the RSC8 dictionary hash and that hash's low 29 bits equal the enclosing AWC stream ID. On audio.rpf, that gives native names at 409,881 stream addresses in 874 banks, including 407,840 addresses outside the current proposal set. This leaves the existing heuristic available for streams without compatible tags. The remaining 4,300 RSC8 names agree with their own tag hash but fail the stream ID check.

**@⁠kaoru-maki** on GitHub · 2026-11-24 22:13 UTC · [original](https://github.com/holdmysocks/SixNG/pull/208#issuecomment-7145971488) Independent check of `6b9793d` on Xbox Series 1.0.2.1. A fresh SixNG dictionary reproduced the reported **8,585 suggestions across 791 banks** in `audio.rpf`. I joined the proposals to a local RSC8 census by archive, bank offset and stream ID, checked stream index and encoded byte range, then read the RSC8 dictionary spelling from the original tag and recomputed its JOAAT. | Archive | Suggestions | Same native spelling | Same low 29 bits, different full hash | Same full hash, different native spelling | RSC8 low 29 bits differ from AWC ID | No RSC8 tag | |---|---:|---:|---:|---:|---:|---:| | `audio.rpf` | 8,585 | 1,539 | 21 | 481 | 142 | 6,402 | | `story000.rpf` | 1,412 | 528 | 29 | 755 | 0 | 100 | | `shared_minigame000.rpf` | 13 | 0 | 3 | 10 | 0 | 0 | | `story000_restofworld.rpf` | 0 | 0 | 0 | 0 | 0 | 0 | In `audio.rpf` the 481 same-hash cases cover **89 distinct spelling pairs**. A full-hash check alone would still accept those spellings as aliases. Streams without an RSC8 tag are outside this check, and the RSC8/AWC ID disagreements are kept separate from spelling conflicts. A naming option would be to prefer the embedded spelling when its JOAAT equals the RSC8 dictionary hash and that hash's low 29 bits equal the enclosing AWC stream ID. On `audio.rpf`, that gives native names at **409,881** stream addresses in **874** banks, including **407,840** addresses outside the current proposal set. This leaves the existing heuristic available for streams without compatible tags. The remaining 4,300 RSC8 names agree with their own tag hash but fail the stream ID check.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-24 22:25 UTC · original

Thanks for the careful check, this is very useful. It confirms that a large share of the stream names suggested by #208 and #214 are wrong, and that a full-hash check alone would still let through the same-hash aliases you found.

A fix PR is in progress. It will prefer the spelling stored in the RSC8 tag when its hash matches the tag's dictionary hash and its low 29 bits match the AWC stream ID, as you suggest, and will keep the current heuristic only for streams without a compatible tag. We'll check your numbers on our side as part of that PR.

**@⁠holdmysocks** on GitHub · 2026-11-24 22:25 UTC · [original](https://github.com/holdmysocks/SixNG/pull/208#issuecomment-7146201789) Thanks for the careful check, this is very useful. It confirms that a large share of the stream names suggested by #208 and #214 are wrong, and that a full-hash check alone would still let through the same-hash aliases you found. A fix PR is in progress. It will prefer the spelling stored in the RSC8 tag when its hash matches the tag's dictionary hash and its low 29 bits match the AWC stream ID, as you suggest, and will keep the current heuristic only for streams without a compatible tag. We'll check your numbers on our side as part of that PR.
Author
Owner

@⁠kaoru-maki on GitHub · 2026-11-24 22:29 UTC · original

Thanks for picking this up! We have an independent patch for the CLI and GUI with synthetic regression tests for both hash checks. I'll send it as a companion PR in case any of the code or tests are useful for yours. I'm also checking #214 against the same RSC8 census.

The short version is that we made two speech recognizers take a listening test on a game that already shipped the answer key.

  • Where native metadata is available, we follow the PSIN conversation turn to its wave cue, participant slot and subtitle key. We validate the wave against the full RSC8 JOAAT, the AWC stream ID and the exact archive/bank/stream range. The subtitle key joins to the official GXT texts in the available locales.
  • We compare the isolated clip with Parakeet and Whisper readings. For repeated text or competing takes, timestamped captions and waveform alignment to a captured occurrence can resolve the actual take. A speaker label comes from native participant data or separate scene evidence. Text-only ASR hits stay candidates.

Our current dialogue catalog has 35,249 exact subtitle keys, with 25,694 linked isolated originals covering about 18.6 hours. These are counts from our verified catalog. The much larger RSC8 name census counts stream addresses independently of subtitle and speaker coverage.

For SixNG, a validated embedded name makes a stable join point between audio and conversation metadata, including cases where the heuristic and the embedded spelling share the full hash. A useful next output would be the native wave hash alongside the exact bank offset and stream index so other tools can reproduce the join on their own install.

**@⁠kaoru-maki** on GitHub · 2026-11-24 22:29 UTC · [original](https://github.com/holdmysocks/SixNG/pull/208#issuecomment-7146298381) Thanks for picking this up! We have an independent patch for the CLI and GUI with synthetic regression tests for both hash checks. I'll send it as a companion PR in case any of the code or tests are useful for yours. I'm also checking #214 against the same RSC8 census. The short version is that we made two speech recognizers take a listening test on a game that already shipped the answer key. - Where native metadata is available, we follow the PSIN conversation turn to its wave cue, participant slot and subtitle key. We validate the wave against the full RSC8 JOAAT, the AWC stream ID and the exact archive/bank/stream range. The subtitle key joins to the official GXT texts in the available locales. - We compare the isolated clip with Parakeet and Whisper readings. For repeated text or competing takes, timestamped captions and waveform alignment to a captured occurrence can resolve the actual take. A speaker label comes from native participant data or separate scene evidence. Text-only ASR hits stay candidates. Our current dialogue catalog has **35,249 exact subtitle keys**, with **25,694 linked isolated originals** covering about **18.6 hours**. These are counts from our verified catalog. The much larger RSC8 name census counts stream addresses independently of subtitle and speaker coverage. For SixNG, a validated embedded name makes a stable join point between `audio` and conversation metadata, including cases where the heuristic and the embedded spelling share the full hash. A useful next output would be the native wave hash alongside the exact bank offset and stream index so other tools can reproduce the join on their own install.
Author
Owner

@⁠kaoru-maki on GitHub · 2026-11-24 22:31 UTC · original

Quick update from our independent #214 run. With the same dictionary and archive index, the current stream-name heuristic reproduced 17,335 proposals in 1,364 audio.rpf banks. It covers 9,999 of the 409,881 stream addresses with a validated native RSC8 spelling, so the embedded-name lookup still adds 399,882 addresses beyond #214 in that archive alone. The spelling-by-spelling comparison against the original tag bytes is running now. I'll include the result with the companion patch.

**@⁠kaoru-maki** on GitHub · 2026-11-24 22:31 UTC · [original](https://github.com/holdmysocks/SixNG/pull/208#issuecomment-7146324292) Quick update from our independent #214 run. With the same dictionary and archive index, the current stream-name heuristic reproduced **17,335 proposals in 1,364 `audio.rpf` banks**. It covers **9,999** of the **409,881** stream addresses with a validated native RSC8 spelling, so the embedded-name lookup still adds **399,882** addresses beyond #214 in that archive alone. The spelling-by-spelling comparison against the original tag bytes is running now. I'll include the result with the companion patch.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-24 22:55 UTC · original

Thanks again. The fix is open as #219. It uses the stored RSC8 spelling when its full JOAAT is in the tag and its low 29 bits equal the AWC stream ID, and only searches untagged streams, keeping stems whose 32-bit JOAAT is an audio metadata object name. Our run reproduces your 409,881 stored names in 874 banks, plus 612 untagged streams from the search.

Your companion PR is welcome; we'll look at the code and tests alongside #219. Emitting the native wave hash next to the bank offset and stream index is a good idea, and we'll look at adding it. Looking forward to the #214 spelling comparison.

**@⁠holdmysocks** on GitHub · 2026-11-24 22:55 UTC · [original](https://github.com/holdmysocks/SixNG/pull/208#issuecomment-7146798868) Thanks again. The fix is open as #219. It uses the stored RSC8 spelling when its full JOAAT is in the tag and its low 29 bits equal the AWC stream ID, and only searches untagged streams, keeping stems whose 32-bit JOAAT is an audio metadata object name. Our run reproduces your 409,881 stored names in 874 banks, plus 612 untagged streams from the search. Your companion PR is welcome; we'll look at the code and tests alongside #219. Emitting the native wave hash next to the bank offset and stream index is a good idea, and we'll look at adding it. Looking forward to the #214 spelling comparison.
This discussion has been locked. Commenting is limited to contributors.
No description provided.