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:
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