fix voice
This commit is contained in:
parent
5da4ed3749
commit
4d33759404
@ -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,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:
|
||||
|
Loading…
Reference in New Issue
Block a user