HLE: speak the title's narration with the host's default voice #2759

Closed
github-bot wants to merge 16 commits from gh-pr/2759/head into gh-pr/2759/base
Owner

@⁠kilolimaVI on GitHub · 2026-11-25 19:49 UTC · original
kilolimaVI:tests/serialize-title-memory → main · +56344 −36870 · 182 files · 16 commits · closed without merging

Narration ("Screen Narration" in the title's accessibility settings) was silent: every speech stream was an empty WAVE file. Text (slot 0x68) and SSML (slot 0xa8) are now spoken by the host's default voice through WinRT SpeechSynthesizer, and the title reads back the WAVE file it makes. Where the host has no working voice, the stream is the previous silence, so nothing gets worse.

What is in it

  • crates/victory-hle/src/modules/speech.rs: synthesis, per-stream handles that own their audio (freed on close, slot 0x70), tests
  • crates/victory-hle/Cargo.toml: Media_Core, Media_SpeechSynthesis, Storage_Streams features of windows
  • README.md: the runtime services row

Tested

  • ASUS Vivobook S16, Ryzen 7 8845HS, Radeon 780M, Windows 11 26300, debug build
  • cargo test -p victory-hle --lib speech: 3 passed; the_host_voice_speaks_text_and_ssml synthesized real audio for both text and SSML (not skipped)
  • cargo test --workspace: 781 passed, 0 failed, 9 ignored
  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean

Not tested

  • In the title itself: I don't have the game files. The WAVE format the host makes (rate, channels) may differ from what the console returned; if the title expects a fixed format, it may need converting.
  • Voice listing (slot 0x40) and custom voices remain unimplemented; the default voice is always used.

AI use
Code, tests and description written with Claude (Claude Opus 5.5); I built and ran the tests on the hardware above.

**@⁠kilolimaVI** on GitHub · 2026-11-25 19:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/2759) `kilolimaVI:tests/serialize-title-memory` → `main` · +56344 −36870 · 182 files · 16 commits · closed without merging Narration ("Screen Narration" in the title's accessibility settings) was silent: every speech stream was an empty WAVE file. Text (slot 0x68) and SSML (slot 0xa8) are now spoken by the host's default voice through WinRT `SpeechSynthesizer`, and the title reads back the WAVE file it makes. Where the host has no working voice, the stream is the previous silence, so nothing gets worse. **What is in it** - `crates/victory-hle/src/modules/speech.rs`: synthesis, per-stream handles that own their audio (freed on close, slot 0x70), tests - `crates/victory-hle/Cargo.toml`: `Media_Core`, `Media_SpeechSynthesis`, `Storage_Streams` features of `windows` - `README.md`: the runtime services row **Tested** - ASUS Vivobook S16, Ryzen 7 8845HS, Radeon 780M, Windows 11 26300, debug build - `cargo test -p victory-hle --lib speech`: 3 passed; `the_host_voice_speaks_text_and_ssml` synthesized real audio for both text and SSML (not skipped) - `cargo test --workspace`: 781 passed, 0 failed, 9 ignored - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean **Not tested** - In the title itself: I don't have the game files. The WAVE format the host makes (rate, channels) may differ from what the console returned; if the title expects a fixed format, it may need converting. - Voice listing (slot 0x40) and custom voices remain unimplemented; the default voice is always used. **AI use** Code, tests and description written with Claude (Claude Opus 5.5); I built and ran the tests on the hardware above.
Sync the 15 Rust source files changed between private renderer revisions c004bfc304c3c34fac4da9252eb882c686399add and 29649ac77df02f220a5be1e5b17fb256ffce2012 onto public source baseline 921d8d3b43.
Fourteen victory-gpu tests reserve, register or remap title memory, or have the software adapter read and write process memory. Run in parallel, the lib tests aborted with STATUS_ACCESS_VIOLATION in about 1 of 5 runs on a Radeon 780M laptop; with --test-threads=1 they never did. A test lock like TEST_FRAME_LOCK makes them take turns; 30 of 30 parallel runs then passed.

Assisted-by: Claude (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:13:34 +00:00
github-bot closed this pull request 2026-11-26 05:13:35 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2759
No description provided.