From 4ae693947b3400fb99db9acc50f84f42ac2ec7b4 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 24 Sep 2014 21:29:26 +0100 Subject: Fix small issues with music module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- client/speaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/speaker.py') 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): -- cgit v1.3.1