aboutsummaryrefslogtreecommitdiff
path: root/autogpt/speech/macos_tts.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpt/speech/macos_tts.py')
-rw-r--r--autogpt/speech/macos_tts.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/autogpt/speech/macos_tts.py b/autogpt/speech/macos_tts.py
deleted file mode 100644
index e48522cf9..000000000
--- a/autogpt/speech/macos_tts.py
+++ /dev/null
@@ -1,22 +0,0 @@
-""" MacOS TTS Voice. """
-import os
-
-from autogpt.config import Config
-from autogpt.speech.base import VoiceBase
-
-
-class MacOSTTS(VoiceBase):
- """MacOS TTS Voice."""
-
- def _setup(self, config: Config) -> None:
- pass
-
- def _speech(self, text: str, voice_index: int = 0) -> bool:
- """Play the given text."""
- if voice_index == 0:
- os.system(f'say "{text}"')
- elif voice_index == 1:
- os.system(f'say -v "Ava (Premium)" "{text}"')
- else:
- os.system(f'say -v Samantha "{text}"')
- return True