index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-10-18 11:58:29 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-10-18 11:58:29 +0200 |
commit | 90eff266576a5fc2fe9f690e835c876aa405fe6d (patch) | |
tree | cbbcf2693f6470dc8fdc89ffbfa854935e526ac2 /archinstall/lib/tts.py | |
parent | 60aaae4337c90bea3d485f58f7ab206cb1539a74 (diff) |
-rw-r--r-- | archinstall/lib/tts.py | 36 |
diff --git a/archinstall/lib/tts.py b/archinstall/lib/tts.py deleted file mode 100644 index d94fbf1e..00000000 --- a/archinstall/lib/tts.py +++ /dev/null @@ -1,36 +0,0 @@ -class TTS(): - def __init__(self): - try: - import pyttsx3 - self._available = True - except: - self._available = False - - @property - def available(self): - return self._available - @property - def is_available(self): - return self._available - - @property - def volume(self): - return self.engine.getProperty('volume') - - @volume.setter - def volume(self, percentage): - self.engine.setProperty('volume', percentage/100) - return self.volume - - - def speak(self, phrase): - if self.available: - self.engine.say("I will speak this text") - engine.runAndWait() - - def __enter__(self): - self.engine = pyttsx3.init() - return self - - def __exit__(self, *args, **kwargs): - self.engine.stop()
\ No newline at end of file |