Merge branch 'bleed' into tabcomp

This commit is contained in:
chrys 2017-11-11 01:08:43 +01:00
commit 73c554a785
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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: