Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-14 09:19:51 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-07-14 09:19:51 (GMT)
commitdca98acfe21d32183807059ef835a0e67f13dad1 (patch)
treeb3cf383ba1b4ce927018c8a2707900a5daefb838
parentf98d61a896b46a76fa7dde1acfbcbd1dc56dc428 (diff)
Revert to tee plugin since XO-767's gst doesnt support all signals of identify
-rw-r--r--Speak.activity/espeak.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/Speak.activity/espeak.py b/Speak.activity/espeak.py
index 36614f1..d3cbab3 100644
--- a/Speak.activity/espeak.py
+++ b/Speak.activity/espeak.py
@@ -58,18 +58,20 @@ class BaseAudioGrab(gobject.GObject):
self.pipeline = gst.parse_launch(
cmd + ' ' \
'! decodebin ' \
- '! queue ' \
- '! identity name=valve ' \
- '! autoaudiosink')
+ '! tee name=tee ' \
+ 'tee.! queue ' \
+ '! alsasink ' \
+ 'tee.! queue ' \
+ '! fakesink name=sink')
- def on_buffer(element, buffer):
+ def on_buffer(element, buffer, pad):
# we got a new buffer of data, ask for another
gobject.timeout_add(100, self._new_buffer, str(buffer))
return True
- valve = self.pipeline.get_by_name('valve')
- valve.props.signal_handoffs = True
- valve.connect('handoff', on_buffer)
+ sink = self.pipeline.get_by_name('sink')
+ sink.props.signal_handoffs = True
+ sink.connect('handoff', on_buffer)
def gstmessage_cb(bus, message):
self._was_message = True