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