Skip to content

Commit

Permalink
Fix SpeechDispatcher interrupt.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1maker committed Aug 31, 2024
1 parent d487b6b commit 51bd700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SRC/SRAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ static void speech_engine_update() {
break;
}
}
}
}
#ifdef _WIN32
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion SRC/SpeechDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bool SpeechDispatcher::Speak(const char* text, bool interrupt) {
this->paused = false;

}
return spd_say(Speech, interrupt ? SPD_IMPORTANT : SPD_TEXT, text);
return spd_say(Speech, SPD_IMPORTANT, text);
}
bool SpeechDispatcher::StopSpeech() {
if (Speech == nullptr)return false;
Expand Down

0 comments on commit 51bd700

Please sign in to comment.