summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-15 10:31:18 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-26 13:34:46 +0200
commit8c3c9206ccd52ba75699e0ef333a1a7a14815501 (patch)
treed7179b7e8d376b7841ef02bcded40870f6cd8536
parentc98a33ea2457984f54901cd61812b4cd308e65fc (diff)
downloadjasper-client-8c3c9206ccd52ba75699e0ef333a1a7a14815501.tar.gz
jasper-client-8c3c9206ccd52ba75699e0ef333a1a7a14815501.zip
Simplify is_available() method of osx-speaker
-rw-r--r--client/speaker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/speaker.py b/client/speaker.py
index ddf5e54..24041e2 100644
--- a/client/speaker.py
+++ b/client/speaker.py
@@ -117,7 +117,7 @@ class saySpeaker(AbstractSpeaker):
@classmethod
def is_available(cls):
- return (super(saySpeaker, cls).is_available() and subprocess.call(['which','say']) == 0)
+ return (platform.system() == 'darwin')
def say(self, phrase):
cmd = ['say', str(phrase)]