Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/tts.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 13:08:24 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 13:08:24 +0200
commitfd3bcdd7dba73cdeedd60637b161c6c89f6d0e33 (patch)
treefa620bfd7175902638cc32d4ecd4774ffe9b5786 /archinstall/lib/tts.py
parentea84565f8636c0f393e336dbbc93c15cfdba6895 (diff)
parentb6c5942da69e5eeb3db60f1af40e9f33db6800e9 (diff)
Merge remote-tracking branch 'origin' into guided
Diffstat (limited to 'archinstall/lib/tts.py')
-rw-r--r--archinstall/lib/tts.py36
1 files changed, 0 insertions, 36 deletions
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