From a845cf0de6edf1554f1fd43e5269d3c56730ea10 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 14 Jul 2016 23:27:50 +0200 Subject: [PATCH] respect speech settings --- config/settings/settings.cfg | 4 ++-- src/fenrir-package/speech/espeak.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/settings/settings.cfg b/config/settings/settings.cfg index 7d3bbf98..7e7006a5 100644 --- a/config/settings/settings.cfg +++ b/config/settings/settings.cfg @@ -6,9 +6,9 @@ theme=default [speech] enabled=True -driver=speechd +driver=espeak rate=100 -pitch=1 +pitch=100 module=espeak voice=de language=de diff --git a/src/fenrir-package/speech/espeak.py b/src/fenrir-package/speech/espeak.py index 6af438f1..fc32ccfe 100644 --- a/src/fenrir-package/speech/espeak.py +++ b/src/fenrir-package/speech/espeak.py @@ -38,17 +38,17 @@ class speech(): def setVoice(self, voice): if not self._isInitialized: return False - return _es.set_voice(voice) + return self._es.set_voice(voice) def setPitch(self, pitch): if not self._isInitialized: return False - return _es.set_parameter(espeak.Parameter.Pitch, pitch) + return self._es.set_parameter(espeak.Parameter.Pitch, pitch) def setSpeed(self, speed): if not self._isInitialized: return False - return _es.set_parameter(espeak.Parameter.Rate, speed) + return self._es.set_parameter(espeak.Parameter.Rate, speed) def setModule(self, module): if not self._isInitialized: @@ -57,7 +57,7 @@ class speech(): def setLanguage(self, language): if not self._isInitialized: return False - return _es.set_voice(voice) + return self._es.set_voice(language) def shutdown(self): pass