respect speech settings

This commit is contained in:
chrys 2016-07-14 23:30:02 +02:00
parent a845cf0de6
commit a46ac6f02d

View File

@ -43,12 +43,12 @@ class speech():
def setPitch(self, pitch): def setPitch(self, pitch):
if not self._isInitialized: if not self._isInitialized:
return False 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): def setSpeed(self, speed):
if not self._isInitialized: if not self._isInitialized:
return False 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): def setModule(self, module):
if not self._isInitialized: if not self._isInitialized: