Export native speaker hashes from PSIN dialogue turns #1300
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1300
Loading…
Reference in a new issue
No description provided.
Delete branch "psin-native-speaker"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: PSIN-NATIVE-SPEAKER (claim)
What and why
Add
text_tables.py --native-speakersto export the character hash selected by each PSIN conversation turn. Resolve the turn's slot within that conversation's participant array and keep the source and record offsets for each occurrence. This covers typed cues outside theAU_naming pattern and leaves the existing--dialogueCSV compatible with current consumers.The report leaves the character hash empty for missing, repeated or zero-hash slots. It validates the LSCH layout and bounds typed arrays and strings within their blocks. The native cue and label are sufficient to join on
subtitle_hashlocally. The report makes no assumption about a cue's wave number or AWC address.Tested
python3 -IB tests/test_psin_dialogue.py,tests/test_text_tables.py,tests/test_psin_data.pyandtests/test_psin_index.py(101 passed, 1 skipped).python3 -IB tests/test_docs_cli_flags.py,tests/test_text_write_line_endings.pyandtests/test_docs_links.py(23 passed).AU_expression.git diff --checkandscripts/check_no_game_data.pyon all changed files.GPUs tested: n/a (CPU-only, macOS arm64).
AI-assisted: yes.
Checklist
mainand merges cleanly.A follow-up on how we used the native speaker hash. We resolve each PSIN turn's speaker slot in that conversation's participant table, then match the full participant hash to a cast handle in the corresponding scene. The cast record points to the model's asset ID. We resolve the display name through the model's character alias when available, or through the dialogue character registry's GXT key when the model has no alias.
In one confirmed case, two cast members use the same model and both display as
Intruder. The turn's slot and the full participant hash distinguish them. We retain separate speaker identities and use the localized text as a display label.The local census has 66 verified model-to-label mappings. The archive preflight found dialogue slots for 44 of them. Verification of the associated audio is still in progress.
The 66-model follow-up is complete. Across 22 archives, we evaluated 18,305 candidate records. We added 6,730 verified subtitle, speaker and original-audio links for 38 characters, covering 5 h 51 min of isolated original speech. Another 4,182 records already had a named match, and 7,393 were held for further evidence in this run.
The PSIN participant hash resolves the turn to a scene cast member. The model or character registry supplies the display label. We use the cue, GXT key and full wave identity to resolve the exact archive stream, then cross-check the text with ASR tied to that isolated original. Separate participant hashes keep their own identities when a model and display label are shared.
In our current catalog snapshot, 32,921 of 42,423 exact subtitle keys have a verified original, or 77.6% of that key set.
Here is a synthetic downstream example for the native speaker export. It combines each participant hash and cue key with verified audio ranges. The example preserves event order when a subscene clock resets. It also shows how two participants can share a display label without sharing an identity and how a caption with multiple participants can be flagged for review.
The archive includes five localization tables, a reproducer and results from SixNG v0.9.0. All inputs were generated for this example.
scene-dialogue-fixture-5lang.zip
@ubiquitarianism, could you approve the two GitHub Actions workflows awaiting maintainer approval for this PR so CI can run? Thanks!
#1300 | head 74838ba5f097d3af6b20d32f07eb5d0b9a01f333 (merged cleanly with main 1bc055e6c2) |
python -I tests/test_psin_dialogue.py| red on main:ModuleNotFoundError: No module named 'psin_dialogue'(--native-speakersabsent onmain) | green on PR+main:5 tests OK| Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesAudited
tools/psin_dialogue.py,tools/text_tables.py,docs/text.md, andtests/test_psin_dialogue.pyon Windows 11, verifying LSCH layout validation, bounded_arrayand_nameslicing within typed blocks, conversation-local participant slot lookup (leaving absent/duplicate/zero-hash slots empty), atomic staged--native-speakersCSV output alongside--dialogue(and--native-speakersinclusion inout_flagscollision guards),tests/test_docs_encoding.py(1 OK),tests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Tested
74838ba5fmerged (no commit) withmain829530dbd: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_psin_dialogue.py, 5 tests pass.tools/psin_dialogue.pyandtools/text_tables.pyback tomain, the test cannot importpsin_dialogue(a new tool), so red is only that the module is missing.No blocker from my side.
AI-assisted (Claude Code).
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
main7b70211d1 without conflict, and its test file(s) (tests/test_psin_dialogue.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.