diff options
-rw-r--r-- | face.py | 4 | ||||
-rw-r--r-- | speak/espeak.py | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -36,6 +36,10 @@ class Face(gtk.EventBox): self.set_app_paintable(True) self.connect('expose-event', self._expose_cb) + self.connect('unrealize', self._unrealize_cb) + + def _unrealize_cb(self, widget): + self.face.shut_up() def _expose_cb(self, widget, event): card = self.parent.parent diff --git a/speak/espeak.py b/speak/espeak.py index d3cbab3..389045d 100644 --- a/speak/espeak.py +++ b/speak/espeak.py @@ -59,10 +59,10 @@ class BaseAudioGrab(gobject.GObject): cmd + ' ' \ '! decodebin ' \ '! tee name=tee ' \ - 'tee.! queue ' \ + 'tee.! audioconvert ' \ '! alsasink ' \ 'tee.! queue ' \ - '! fakesink name=sink') + '! audioconvert ! fakesink name=sink') def on_buffer(element, buffer, pad): # we got a new buffer of data, ask for another |