diff --git a/src/fenrir/core/punctuationManager.py b/src/fenrir/core/punctuationManager.py index 0c0cf092..df745a0e 100644 --- a/src/fenrir/core/punctuationManager.py +++ b/src/fenrir/core/punctuationManager.py @@ -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): diff --git a/src/fenrir/speechDriver/speechd.py b/src/fenrir/speechDriver/speechd.py index bb709f88..46fe538a 100644 --- a/src/fenrir/speechDriver/speechd.py +++ b/src/fenrir/speechDriver/speechd.py @@ -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