Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Speak.activity/espeak_gst.py
diff options
context:
space:
mode:
Diffstat (limited to 'Speak.activity/espeak_gst.py')
-rw-r--r--Speak.activity/espeak_gst.py14
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