Merge branch 'wordWrappingEndOfScreenBell' of github.com:chrys87/fenrir into wordWrappingEndOfScreenBell
This commit is contained in:
commit
38b8cd7979
@ -38,7 +38,7 @@ driver=speechd
|
|||||||
|
|
||||||
|
|
||||||
# The rate selects how fast fenrir will speak. Options range from 0, slowest, to 1.0, fastest.
|
# The rate selects how fast fenrir will speak. Options range from 0, slowest, to 1.0, fastest.
|
||||||
rate=0.45
|
rate=0.6
|
||||||
|
|
||||||
# Pitch controls the pitch of the voice, select from 0, lowest, to 1.0, highest.
|
# Pitch controls the pitch of the voice, select from 0, lowest, to 1.0, highest.
|
||||||
pitch=0.5
|
pitch=0.5
|
||||||
|
@ -37,7 +37,7 @@ driver=speechd
|
|||||||
|
|
||||||
|
|
||||||
# The rate selects how fast fenrir will speak. Options range from 0, slowest, to 1.0, fastest.
|
# The rate selects how fast fenrir will speak. Options range from 0, slowest, to 1.0, fastest.
|
||||||
rate=0.45
|
rate=0.6
|
||||||
|
|
||||||
# Pitch controls the pitch of the voice, select from 0, lowest, to 1.0, highest.
|
# Pitch controls the pitch of the voice, select from 0, lowest, to 1.0, highest.
|
||||||
pitch=0.5
|
pitch=0.5
|
||||||
|
@ -25,10 +25,10 @@ class driver():
|
|||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def speak(self,text, queueable=True):
|
def speak(self,text, interrupt=True):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
if not queueable:
|
if not interrupt:
|
||||||
self.cancel()
|
self.cancel()
|
||||||
self._es.synth(text)
|
self._es.synth(text)
|
||||||
return True
|
return True
|
||||||
@ -62,7 +62,7 @@ class driver():
|
|||||||
def setRate(self, rate):
|
def setRate(self, rate):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
return self._es.set_parameter(self._es.Parameter().Rate, int(rate*450 + 80))
|
return self._es.set_parameter(self._es.Parameter().Rate, int(rate * 500 + 100))
|
||||||
|
|
||||||
def setModule(self, module):
|
def setModule(self, module):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user