sync
This commit is contained in:
parent
d3f46fe3cf
commit
e8bb7e6b40
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user