Skip to content

Commit

Permalink
Merge pull request #75880 from bruvzg/win_tts_queue_fix
Browse files Browse the repository at this point in the history
[Windows TTS] Fix queuing utterances in rapid succession.
  • Loading branch information
akien-mga committed Apr 18, 2023
2 parents efa01d3 + a9d326d commit c4dba9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/windows/tts_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c4dba9a

Please sign in to comment.