summaryrefslogtreecommitdiff
path: root/client/speaker.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/speaker.py')
-rw-r--r--client/speaker.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/speaker.py b/client/speaker.py
index 1b1255a..4c50a27 100644
--- a/client/speaker.py
+++ b/client/speaker.py
@@ -9,7 +9,9 @@ Speaker methods:
import os
import json
+
class eSpeakSpeaker:
+
"""
Uses the eSpeak speech synthesizer included in the Jasper disk image
"""
@@ -24,7 +26,9 @@ class eSpeakSpeaker:
def play(self, filename):
os.system("aplay -D hw:1,0 " + filename)
+
class saySpeaker:
+
"""
Uses the OS X built-in 'say' command
"""
@@ -42,6 +46,7 @@ class saySpeaker:
def play(self, filename):
os.system("afplay " + filename)
+
def newSpeaker():
"""
Returns: