Merge pull request #75880 from bruvzg/win_tts_queue_fix

[Windows TTS] Fix queuing utterances in rapid succession.
This commit is contained in:
Rémi Verschelde 2023-04-18 23:39:42 +02:00
commit c4dba9a5ef
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -118,7 +118,7 @@ bool TTS_Windows::is_speaking() const {
SPVOICESTATUS status; SPVOICESTATUS status;
synth->GetStatus(&status, nullptr); 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 { bool TTS_Windows::is_paused() const {