respect speech settings
This commit is contained in:
parent
6f6ab0c68e
commit
a845cf0de6
@ -6,9 +6,9 @@ theme=default
|
|||||||
|
|
||||||
[speech]
|
[speech]
|
||||||
enabled=True
|
enabled=True
|
||||||
driver=speechd
|
driver=espeak
|
||||||
rate=100
|
rate=100
|
||||||
pitch=1
|
pitch=100
|
||||||
module=espeak
|
module=espeak
|
||||||
voice=de
|
voice=de
|
||||||
language=de
|
language=de
|
||||||
|
@ -38,17 +38,17 @@ class speech():
|
|||||||
def setVoice(self, voice):
|
def setVoice(self, voice):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
return _es.set_voice(voice)
|
return self._es.set_voice(voice)
|
||||||
|
|
||||||
def setPitch(self, pitch):
|
def setPitch(self, pitch):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
return _es.set_parameter(espeak.Parameter.Pitch, pitch)
|
return self._es.set_parameter(espeak.Parameter.Pitch, pitch)
|
||||||
|
|
||||||
def setSpeed(self, speed):
|
def setSpeed(self, speed):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
return _es.set_parameter(espeak.Parameter.Rate, speed)
|
return self._es.set_parameter(espeak.Parameter.Rate, speed)
|
||||||
|
|
||||||
def setModule(self, module):
|
def setModule(self, module):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
@ -57,7 +57,7 @@ class speech():
|
|||||||
def setLanguage(self, language):
|
def setLanguage(self, language):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
return _es.set_voice(voice)
|
return self._es.set_voice(language)
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user