Skip to content

Commit

Permalink
Simplify is_available() method of osx-speaker
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 15, 2014
1 parent 961cf65 commit 78869b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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)]
Expand Down

0 comments on commit 78869b5

Please sign in to comment.