Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Speak.activity/espeak_cmd.py
diff options
context:
space:
mode:
authorAleksey 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)
commit1eeffe9e24f4f8be117f7775eae0f9388b08dc2f (patch)
tree44574cf5d2f7308d8b0e606e4c07bd2811a048b9 /Speak.activity/espeak_cmd.py
parent27509f29c0123a7ce137233f9b21b1a860c7937c (diff)
Simplify piple by using identify plugin; handle warnings in gst bus
Diffstat (limited to 'Speak.activity/espeak_cmd.py')
-rw-r--r--Speak.activity/espeak_cmd.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Speak.activity/espeak_cmd.py b/Speak.activity/espeak_cmd.py
index f391e5b..682bfcd 100644
--- a/Speak.activity/espeak_cmd.py
+++ b/Speak.activity/espeak_cmd.py
@@ -25,16 +25,9 @@ RATE_MAX = 99
PITCH_DEFAULT = PITCH_MAX/2
RATE_DEFAULT = RATE_MAX/3
-class AudioGrabCmd(espeak.AudioGrab):
+class AudioGrabCmd(espeak.BaseAudioGrab):
def speak(self, status, text):
- self.make_pipeline(
- 'filesrc name=file-source ' \
- '! decodebin ' \
- '! tee name=tee ' \
- 'tee.! audioconvert' \
- '! alsasink ' \
- 'tee.! queue ' \
- '! audioconvert name=conv')
+ self.make_pipeline('filesrc name=file-source')
# espeak uses 80 to 370
rate = 80 + (370-80) * int(status.rate) / 100