diff options
-rw-r--r-- | espeak_cmd.py | 2 | ||||
-rw-r--r-- | espeak_gst.py | 4 |
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)) |