diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-24 21:29:26 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-24 21:29:26 +0100 |
| commit | 4ae693947b3400fb99db9acc50f84f42ac2ec7b4 (patch) | |
| tree | 5780e522cd25718218bfcdd7292f5de914f05dd6 /client/speaker.py | |
| parent | ea3026c133755bf3e35ad78fa253786bc9ff7c36 (diff) | |
| download | jasper-client-4ae693947b3400fb99db9acc50f84f42ac2ec7b4.tar.gz jasper-client-4ae693947b3400fb99db9acc50f84f42ac2ec7b4.zip | |
Fix small issues with music module
The reconnect wrapper couldn’t be used to return values and this
sometimes caused crashes when getting current playback status. Also
espeak was only being passed track names etc in ASCII so fixed to allow
UTF-8 to get through.
Diffstat (limited to 'client/speaker.py')
| -rw-r--r-- | client/speaker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/speaker.py b/client/speaker.py index 8344132..c20c01b 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -21,7 +21,7 @@ class eSpeakSpeaker: return os.system("which espeak") == 0 def say(self, phrase, OPTIONS=" -vdefault+m3 -p 40 -s 160 --stdout > say.wav"): - os.system("espeak " + json.dumps(phrase) + OPTIONS) + os.system("espeak " + json.dumps(phrase, False, False) + OPTIONS) self.play("say.wav") def play(self, filename): |
