diff --git a/src/fenrir-package/speech/espeak.py b/src/fenrir-package/speech/espeak.py index fc32ccfe..a26b5830 100644 --- a/src/fenrir-package/speech/espeak.py +++ b/src/fenrir-package/speech/espeak.py @@ -43,12 +43,12 @@ class speech(): def setPitch(self, pitch): if not self._isInitialized: return False - return self._es.set_parameter(espeak.Parameter.Pitch, pitch) + return self._es.set_parameter(self._es.Parameter().Pitch, pitch) def setSpeed(self, speed): if not self._isInitialized: return False - return self._es.set_parameter(espeak.Parameter.Rate, speed) + return self._es.set_parameter(self._es.Parameter().Rate, speed) def setModule(self, module): if not self._isInitialized: