Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-06-17 18:31:13 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-06-17 18:31:13 (GMT)
commit29a9f71aeb2ba2fd44064bdb7c31b04a4b3c6aa8 (patch)
treea551fbcef7d9908916d4ea9df557b468a0c258d8
parentd078187bbc1581075510dbd988a2ca8e4f37b428 (diff)
minus rate for robot
-rw-r--r--espeak_cmd.py2
-rw-r--r--espeak_gst.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/espeak_cmd.py b/espeak_cmd.py
index cddb440..1f50bbf 100644
--- a/espeak_cmd.py
+++ b/espeak_cmd.py
@@ -30,7 +30,7 @@ class AudioGrabCmd(espeak.BaseAudioGrab):
self.make_pipeline('filesrc name=file-source')
# 175 is default value, min is 80
- rate = 80 + int(((175 - 80) * 2) * status.rate / RATE_MAX)
+ rate = 60 + int(((175 - 80) * 2) * status.rate / RATE_MAX)
wavpath = "/tmp/speak.wav"
subprocess.call(["espeak", "-w", wavpath, "-p", str(status.pitch),
diff --git a/espeak_gst.py b/espeak_gst.py
index f3f1c9c..9c72994 100644
--- a/espeak_gst.py
+++ b/espeak_gst.py
@@ -32,8 +32,8 @@ class AudioGrabGst(espeak.BaseAudioGrab):
self.make_pipeline('espeak name=espeak ! wavenc')
src = self.pipeline.get_by_name('espeak')
- pitch = int(status.pitch) - 100
- rate = int(status.rate) - 100
+ pitch = int(status.pitch) - 120
+ rate = int(status.rate) - 120
logger.debug('pitch=%d rate=%d voice=%s text=%s' % (pitch, rate,
status.voice.name, text))