diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-07-14 03:05:09 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-07-14 03:05:09 (GMT) |
commit | 1eeffe9e24f4f8be117f7775eae0f9388b08dc2f (patch) | |
tree | 44574cf5d2f7308d8b0e606e4c07bd2811a048b9 /Speak.activity/espeak_gst.py | |
parent | 27509f29c0123a7ce137233f9b21b1a860c7937c (diff) |
Simplify piple by using identify plugin; handle warnings in gst bus
Diffstat (limited to 'Speak.activity/espeak_gst.py')
-rw-r--r-- | Speak.activity/espeak_gst.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Speak.activity/espeak_gst.py b/Speak.activity/espeak_gst.py index f12453d..85cfa26 100644 --- a/Speak.activity/espeak_gst.py +++ b/Speak.activity/espeak_gst.py @@ -23,19 +23,9 @@ RATE_MAX = 200 PITCH_DEFAULT = PITCH_MAX/2 RATE_DEFAULT = RATE_MAX/2 -class AudioGrabGst(espeak.AudioGrab): +class AudioGrabGst(espeak.BaseAudioGrab): def speak(self, status, text): - self.stop_sound_device() - - self.make_pipeline( - 'espeak name=espeak ' \ - '! wavenc ! decodebin ' \ - '! tee name=tee ' \ - 'tee.! audioconvert ' \ - '! alsasink ' \ - 'tee.! queue ' \ - '! audioconvert name=conv') - + self.make_pipeline('espeak name=espeak ! wavenc') src = self.pipeline.get_by_name('espeak') pitch = int(status.pitch) - 100 |