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 ",.;:?!-": key in ",.;:?!-":
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ') resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
else: else:
resultText = resultText.replace(str(key),' ' +str(item) + ' ') #resultText = resultText.replace(str(key),' ' +str(item) + ' ')
return resultText return resultText
def proceedPunctuation(self, text, ignorePunctuation=False): def proceedPunctuation(self, text, ignorePunctuation=False):

View File

@ -36,8 +36,9 @@ class driver():
try: try:
self._sd.set_synthesis_voice(self._language) self._sd.set_synthesis_voice(self._language)
self._sd.set_punctuation(self._punct.NONE) self._sd.set_punctuation(self._punct.NONE)
except: except Exception as e:
pass pass
self._sd.speak(text) self._sd.speak(text)
return True return True