feat(libSceTextToSpeech2): report the speech engine as unavailable #1374

Merged
gjonn merged 1 commit from upstream-pr/1374 into main 2026-10-08 04:39:02 +00:00
gjonn commented 2026-10-08 00:49:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gjonn on 2026-10-08T00:49:00Z.


What

A title imports seven libSceTextToSpeech2 functions that the module did not export (Initialize, Open, Speak, GetSpeechStatus, Cancel, Close, Terminate), so the title could not be linked. It calls sceTextToSpeech2Initialize with a param starting with 0x2000000 during start-up, and skips its whole narration set-up (it never calls Open) when the result is non-zero.

  • sceTextToSpeech2Initialize fails: there is no speech engine. The console's error for that is unknown; it returns the kernel's EOPNOTSUPP (0x8002002D), recorded under unknown function info.
  • The other six exports are only reachable after a successful initialization and open, and throw NotImplemented; their signatures are unknown.
  • The module gets a CMakeLists so the test can be registered; the existing sceTextToSpeech2GetSystemStatus stub is unchanged.

Tested

  • Windows 11, MinGW-w64 GCC 15.2.0: new guest_text_to_speech2 test (initialization reports the unsupported operation, Open throws) passes.
  • A title that calls sceTextToSpeech2Initialize skips narration and continues start-up.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4780271269 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1374). Originally posted by [gjonn](https://github.com/gjonn) on 2026-10-08T00:49:00Z. --- ### What A title imports seven libSceTextToSpeech2 functions that the module did not export (`Initialize`, `Open`, `Speak`, `GetSpeechStatus`, `Cancel`, `Close`, `Terminate`), so the title could not be linked. It calls `sceTextToSpeech2Initialize` with a param starting with 0x2000000 during start-up, and skips its whole narration set-up (it never calls `Open`) when the result is non-zero. - `sceTextToSpeech2Initialize` fails: there is no speech engine. The console's error for that is unknown; it returns the kernel's `EOPNOTSUPP` (0x8002002D), recorded under unknown function info. - The other six exports are only reachable after a successful initialization and open, and throw `NotImplemented`; their signatures are unknown. - The module gets a CMakeLists so the test can be registered; the existing `sceTextToSpeech2GetSystemStatus` stub is unchanged. ### Tested - Windows 11, MinGW-w64 GCC 15.2.0: new `guest_text_to_speech2` test (initialization reports the unsupported operation, `Open` throws) passes. - A title that calls `sceTextToSpeech2Initialize` skips narration and continues start-up. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-08 00:49:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T00:49:22Z.


Progress report (9619edf → 8d1d430)

📉 System libraries: 85.41% (-0.16%, +1 implemented, +6 declared functions)

✅ 1 implemented
Library Name
libSceTextToSpeech2 sceTextToSpeech2Initialize
🆕 6 declared as stubs
Library Name
libSceTextToSpeech2 sceTextToSpeech2Cancel
libSceTextToSpeech2 sceTextToSpeech2Close
libSceTextToSpeech2 sceTextToSpeech2GetSpeechStatus
libSceTextToSpeech2 sceTextToSpeech2Open
libSceTextToSpeech2 sceTextToSpeech2Speak
libSceTextToSpeech2 sceTextToSpeech2Terminate
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6049855093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1374#issuecomment-6049855093). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T00:49:22Z. --- <!-- progress-report --> ### Progress report (9619edf → 8d1d430) 📉 **System libraries**: 85.41% (-0.16%, +1 implemented, +6 declared functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceTextToSpeech2 | `sceTextToSpeech2Initialize` | </details> <details> <summary>🆕 6 declared as stubs</summary> | Library | Name | | - | - | | libSceTextToSpeech2 | `sceTextToSpeech2Cancel` | | libSceTextToSpeech2 | `sceTextToSpeech2Close` | | libSceTextToSpeech2 | `sceTextToSpeech2GetSpeechStatus` | | libSceTextToSpeech2 | `sceTextToSpeech2Open` | | libSceTextToSpeech2 | `sceTextToSpeech2Speak` | | libSceTextToSpeech2 | `sceTextToSpeech2Terminate` | </details>
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
boykopovar/AnyPS5!1374
No description provided.