Merge branch 'bleed' into tabcomp
This commit is contained in:
commit
73c554a785
@ -47,8 +47,6 @@ class speechDriver():
|
||||
def setVoice(self, voice):
|
||||
if not self._isInitialized:
|
||||
return
|
||||
if not isinstance(voice, float):
|
||||
return
|
||||
if voice == '':
|
||||
return
|
||||
self.voice = voice
|
||||
|
@ -46,8 +46,9 @@ class driver(speechDriver):
|
||||
self.env['runtime']['debug'].writeDebugOut('speechDriver setModule:' + str(e),debug.debugLevel.ERROR)
|
||||
|
||||
try:
|
||||
if self.voice != '':
|
||||
self._sd.set_voice(self.voice)
|
||||
if self.voice:
|
||||
if self.voice != '':
|
||||
self._sd.set_voice(self.voice)
|
||||
except Exception as e:
|
||||
self.env['runtime']['debug'].writeDebugOut('speechDriver setVoice:' + str(e),debug.debugLevel.ERROR)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user