diff --git a/src/calibre/gui2/tts2/piper.py b/src/calibre/gui2/tts2/piper.py index 9c8f043efc..1dfa7821b3 100644 --- a/src/calibre/gui2/tts2/piper.py +++ b/src/calibre/gui2/tts2/piper.py @@ -214,7 +214,9 @@ class Piper(TTSBackend): if self._process is not None: if self._state is not QTextToSpeech.State.Ready or self._utterances_being_synthesized or self._utterances_being_spoken: self.shutdown() - self.process + # We cannot re-create self.process here as that will cause the + # audio device to go to active state which will cause a + # speaking event to be generated def shutdown(self) -> None: if self._process is not None: