Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/face.py
diff options
context:
space:
mode:
Diffstat (limited to 'face.py')
-rw-r--r--face.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/face.py b/face.py
index a44da8c..1fd8aa0 100644
--- a/face.py
+++ b/face.py
@@ -22,7 +22,7 @@
# along with Speak.activity. If not, see <http://www.gnu.org/licenses/>.
import logging
-import cjson
+import json
from gi.repository import Gtk
from gi.repository import Gdk
@@ -60,7 +60,7 @@ class Status():
FFTMouth: 2,
WaveformMouth: 3}
- return cjson.encode({
+ return json.dumps({
'voice': {'language': self.voice.language,
'name': self.voice.name},
'pitch': self.pitch,
@@ -75,7 +75,7 @@ class Status():
2: FFTMouth,
3: WaveformMouth}
- data = cjson.decode(buf)
+ data = json.loads(buf)
self.voice = voice.Voice(data['voice']['language'],
data['voice']['name'])
self.pitch = data['pitch']