From 95014dffb1cc4aed3030851f304731e57b37ffe1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 Sep 2024 10:39:52 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tts/qt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tts/qt.py b/src/calibre/gui2/tts/qt.py index 7557fad8f5..249f97763c 100644 --- a/src/calibre/gui2/tts/qt.py +++ b/src/calibre/gui2/tts/qt.py @@ -100,6 +100,7 @@ class QtTTSBackend(TTSBackend): # start and length values are totally wrong, so track manually # print(f'{repr(word)=} {idx=} {start=} {length=}, {repr(self.speaking_text[start:start+length])=}') key = word, start, length + # Qt sometimes repeats words with windows modern engine at least, for a test case see https://bugs.launchpad.net/calibre/+bug/2080708 if self.last_spoken_word == key: return self.last_spoken_word = key