unify pitch and rate with a value 0.0 - 1.0 in config
This commit is contained in:
@@ -43,12 +43,12 @@ class speech():
|
||||
def setPitch(self, pitch):
|
||||
if not self._isInitialized:
|
||||
return False
|
||||
return self._es.set_parameter(self._es.Parameter().Pitch, pitch)
|
||||
return self._es.set_parameter(self._es.Parameter().Pitch, int(pitch * 99))
|
||||
|
||||
def setSpeed(self, speed):
|
||||
if not self._isInitialized:
|
||||
return False
|
||||
return self._es.set_parameter(self._es.Parameter().Rate, speed)
|
||||
return self._es.set_parameter(self._es.Parameter().Rate, int(speed*450 + 80))
|
||||
|
||||
def setModule(self, module):
|
||||
if not self._isInitialized:
|
||||
|
Reference in New Issue
Block a user