More strictly adhere to nvdaControllerClient and Tolk parameters.

This commit is contained in:
Storm Dragon
2026-07-18 02:53:17 -04:00
parent 5a8a96b14f
commit ffae1c309a
3 changed files with 28 additions and 2 deletions
+2 -1
View File
@@ -440,7 +440,8 @@ extern "C" error_status_t __stdcall testIfRunning(void) {
}
extern "C" error_status_t __stdcall speakText(const wchar_t *text) {
const std::string utf8 = to_utf8(text);
return call_boolean("SpeakText", g_variant_new("(sb)", utf8.c_str(), TRUE));
// Tolk calls cancelSpeech separately when its interrupt argument is true.
return call_boolean("SpeakText", g_variant_new("(sb)", utf8.c_str(), FALSE));
}
extern "C" error_status_t __stdcall cancelSpeech(void) {
return call_boolean("CancelSpeech", nullptr);