aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epy.py b/epy.py
index 1b2b0b2..feb24ba 100755
--- a/epy.py
+++ b/epy.py
@@ -2158,7 +2158,7 @@ class Reader:
self._tts_speaker: Optional[SpeakerBaseModel] = construct_speaker(
self.setting.PreferredTTSEngine, self.setting.TTSEngineArgs
)
- self._tts_support: bool = bool(self._tts_speaker)
+ self.tts_support: bool = bool(self._tts_speaker)
self.is_speaking: bool = False
# multi process & progress percentage
@@ -2859,7 +2859,7 @@ class Reader:
)
sys.exit()
- elif k in self.keymap.TTSToggle and self._tts_support:
+ elif k in self.keymap.TTSToggle and self.tts_support:
tospeak = ""
for i in text_structure.text_lines[
reading_state.row : reading_state.row + (rows * self.spread)