From 79553f3d45558c12f19b1ec130c22af5bb61e42b Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Tue, 10 Mar 2009 00:57:36 +0000 Subject: Use new pitch/rate ranges from gst-plugins-espeak-0.2 --- (limited to 'Speak.activity') 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)) -- cgit v0.9.1