This commit is contained in:
chrys 2016-10-20 11:30:35 +02:00
parent d3f46fe3cf
commit e8bb7e6b40
2 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class punctuationManager():
key in ",.;:?!-":
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
else:
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
#resultText = resultText.replace(str(key),' ' +str(item) + ' ')
return resultText
def proceedPunctuation(self, text, ignorePunctuation=False):

View File

@ -35,9 +35,10 @@ class driver():
if queueable == False: self.cancel()
try:
self._sd.set_synthesis_voice(self._language)
self._sd.set_punctuation(self._punct.NONE)
except:
self._sd.set_punctuation(self._punct.NONE)
except Exception as e:
pass
self._sd.speak(text)
return True