From 27509f29c0123a7ce137233f9b21b1a860c7937c Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Tue, 14 Jul 2009 02:25:24 +0000 Subject: Create voices combobox widget; make Speak library deploying friendly --- (limited to 'Speak.activity/face.py') diff --git a/Speak.activity/face.py b/Speak.activity/face.py index ab63412..5ad632c 100644 --- a/Speak.activity/face.py +++ b/Speak.activity/face.py @@ -43,7 +43,7 @@ FACE_PAD = 2 class Status: def __init__(self): - self.voice = voice.DEFAULT + self.voice = voice.defaultVoice() self.pitch = espeak.PITCH_DEFAULT self.rate = espeak.RATE_DEFAULT self.eyes = [eye.Eye] * 2 @@ -171,10 +171,10 @@ class View(gtk.EventBox): def say(self, something): self._audio.speak(self._peding or self.status, something) - + def say_notification(self, something): status = (self._peding or self.status).clone() - status.voice = voice.DEFAULT + status.voice = voice.defaultVoice() self._audio.speak(status, something) def shut_up(self): -- cgit v0.9.1