From ea348bc9fbfb6407a6c9bd8864df4d10c6d46b05 Mon Sep 17 00:00:00 2001 From: David Racine Date: Sun, 13 Sep 2026 20:29:52 -0400 Subject: [PATCH] a11y: let F9 toggle TTS on Linux (#7191) The hotkey was removed in #2833 because Linux had no synthesizer and fell through to SpeechLogger. #5428 added the espeak-ng backend and un-gated the settings checkbox, but left the hotkey and the README on Windows and macOS. --- README.md | 2 +- soh/soh/OTRGlobals.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 013a898990..4dd7f0315b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Congratulations, you are now sailing with the Ship of Harkinian! Have fun! | F5 | Save state | | F6 | Change state | | F7 | Load state | -| F9 | Toggle Text-to-Speech (Windows and Mac only) | +| F9 | Toggle Text-to-Speech | | F11 | Fullscreen | | Tab | Toggle Alternate assets | | Ctrl+R | Reset | diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 77156dbfe9..5dedad2fc2 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -1769,7 +1769,7 @@ extern "C" void Graph_StartFrame() { break; } -#if defined(_WIN32) || defined(__APPLE__) +#if defined(_WIN32) || defined(__APPLE__) || defined(ESPEAK) case KbScancode::LUS_KB_F9: { // Toggle TTS CVarSetInteger(CVAR_SETTING("A11yTTS"), !CVarGetInteger(CVAR_SETTING("A11yTTS"), 0));