fix voice

This commit is contained in:
chrys 2017-11-11 01:07:48 +01:00
parent 5da4ed3749
commit 4d33759404
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,6 +46,7 @@ class driver(speechDriver):
self.env['runtime']['debug'].writeDebugOut('speechDriver setModule:' + str(e),debug.debugLevel.ERROR)
try:
if self.voice:
if self.voice != '':
self._sd.set_voice(self.voice)
except Exception as e: