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

Closed
kilolimaVI wants to merge 16 commits from upstream-pr/2759 into main
kilolimaVI commented 2026-11-25 19:49:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-25T19:49:51Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6612449002 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2759). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-25T19:49:51Z. --- 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.
upstream-sync closed this pull request 2026-11-25 20:06:04 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2757
No description provided.