summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-04-10 10:24:40 +0300
committerYuri Sizov <yuris@humnom.net>2023-04-26 14:14:06 +0200
commit10547deb3d7768076cac320d4e0102cca19c6cd9 (patch)
tree9cf2e98bccec702bb591e323fd9391e68adf7b25 /platform/windows
parent357e2ec05def4202e6e1c8c1ab91f0a02fc035f1 (diff)
[Windows TTS] Fix queuing utterances in rapid succession.
(cherry picked from commit a9d326db60bba859b5c6eaee658167ef050887a1)
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/tts_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/tts_windows.cpp b/platform/windows/tts_windows.cpp
index 54ab93ee01..6b4b09b2b9 100644
--- a/platform/windows/tts_windows.cpp
+++ b/platform/windows/tts_windows.cpp
@@ -118,7 +118,7 @@ bool TTS_Windows::is_speaking() const {
SPVOICESTATUS status;
synth->GetStatus(&status, nullptr);
- return (status.dwRunningState == SPRS_IS_SPEAKING);
+ return (status.dwRunningState == SPRS_IS_SPEAKING || status.dwRunningState == 0 /* Waiting To Speak */);
}
bool TTS_Windows::is_paused() const {