This commit is contained in:
Kovid Goyal 2024-11-26 20:14:07 +05:30
parent 28fd589db7
commit e105f248d5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -254,7 +254,7 @@ class TTSManager(QObject):
elif prev_state is QTextToSpeech.State.Ready:
self.emit_state_event('begin')
elif state is QTextToSpeech.State.Ready:
if prev_state == QTextToSpeech.State.Speaking:
if prev_state is QTextToSpeech.State.Speaking:
if not self.speaking_simple_text:
if self.tracker.pop_first() and (text := self.tracker.current_text()):
self.tts.say(text)