More strictly adhere to nvdaControllerClient and Tolk parameters.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user