Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 26, 2024
1 parent f7c4d8c commit 95014df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/calibre/gui2/tts/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def _saying_word(self, word: str, utterance_id: int, start: int, length: int) ->
# 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
Expand Down

0 comments on commit 95014df

Please sign in to comment.