respect speech settings
This commit is contained in:
parent
a845cf0de6
commit
a46ac6f02d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user