diff options
author | Pootle daemon <pootle@pootle.sugarlabs.org> | 2012-11-08 05:30:57 (GMT) |
---|---|---|
committer | Pootle daemon <pootle@pootle.sugarlabs.org> | 2012-11-08 05:30:57 (GMT) |
commit | fa6c29144a349ca41f2091b5bb0c2cde775ff563 (patch) | |
tree | e6f6c0fd3b42327a5c586cf08fc154d74599ce82 /face.py | |
parent | 92acedc8e1b78aba8eb83784dcce5ba0b8e9239e (diff) | |
parent | 1abfd34088c15e16b61357211581d7298953b314 (diff) |
Merge branch 'master' of git.sugarlabs.org:speak/mainline
Diffstat (limited to 'face.py')
-rw-r--r-- | face.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ import logging import gtk -import cjson +import json import sugar.graphics.style as style @@ -56,7 +56,7 @@ class Status: fft_mouth.FFTMouth : 2, waveform_mouth.WaveformMouth : 3 } - return cjson.encode({ + return json.dumps({ 'voice' : { 'language' : self.voice.language, 'name' : self.voice.name }, 'pitch' : self.pitch, @@ -71,7 +71,7 @@ class Status: 2: fft_mouth.FFTMouth, 3: waveform_mouth.WaveformMouth } - data = cjson.decode(buf) + data = json.loads(buf) self.voice = voice.Voice(data['voice']['language'], data['voice']['name']) self.pitch = data['pitch'] |