diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-10 00:57:36 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-10 00:57:36 (GMT) |
commit | 79553f3d45558c12f19b1ec130c22af5bb61e42b (patch) | |
tree | 0f400a688aa014763d1db7be2c91ba35c84577f6 /Speak.activity | |
parent | f0b74984b013ddf730b7b947318d7dd5826346e4 (diff) |
Use new pitch/rate ranges from gst-plugins-espeak-0.2
Diffstat (limited to 'Speak.activity')
-rw-r--r-- | Speak.activity/audio.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Speak.activity/audio.py b/Speak.activity/audio.py index b7febdf..a9bf1c4 100644 --- a/Speak.activity/audio.py +++ b/Speak.activity/audio.py @@ -57,10 +57,8 @@ class AudioGrab(gobject.GObject): self._playfile(wavpath) def _speak(self, status, text): - pitch = int(status.pitch) - rate = int(status.rate) - # espeak uses 80 to 370 - rate = 80 + (370-80) * rate / 100 + pitch = int(status.pitch) * 2 - 100 + rate = int(status.rate) * 2 - 100 logger.debug('pitch=%d rate=%d voice=%s text=%s' % (pitch, rate, status.voice.name, text)) |