diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-06-29 21:25:58 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-06-30 04:13:22 (GMT) |
commit | 4e2df4e10931eac04393c3cc8abe99953b17dcc6 (patch) | |
tree | 2248b9dda4744b1b9e1a2e48e2f1eb325c887ea9 /espeak_cmd.py | |
parent | a8630e53fe8077e684652b240c236ccba807838d (diff) |
A lot of pep8 corrections
I'm porting Speak Activity to Gtk3, this patch is the first step.
I have these pending steps to do:
. Remove the toolkit modules and migrate the activity to sugar-toolkit
. Migrate from Hippo to Gtk
. Convert the activity to PyGI; Gtk3 Port Start
. Use gi.repository.Gst in the place of pygst
. Extra corrections; Finishing port
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'espeak_cmd.py')
-rw-r--r-- | espeak_cmd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/espeak_cmd.py b/espeak_cmd.py index 1f50bbf..f074207 100644 --- a/espeak_cmd.py +++ b/espeak_cmd.py @@ -25,6 +25,7 @@ import espeak PITCH_MAX = 99 RATE_MAX = 99 + class AudioGrabCmd(espeak.BaseAudioGrab): def speak(self, status, text): self.make_pipeline('filesrc name=file-source') @@ -45,6 +46,7 @@ class AudioGrabCmd(espeak.BaseAudioGrab): # play self.restart_sound_device() + def voices(): out = [] result = subprocess.Popen(["espeak", "--voices"], stdout=subprocess.PIPE) \ @@ -55,7 +57,7 @@ def voices(): if not m: continue language, gender, name, stuff = m.groups() - if stuff.startswith('mb/'): #or \ + if stuff.startswith('mb/'): # or \ #name in ('en-rhotic','english_rp','english_wmids'): # these voices don't produce sound continue |