Skip to content

Commit

Permalink
fixing commas and puctuation breaking reading
Browse files Browse the repository at this point in the history
  • Loading branch information
willwade committed Oct 25, 2024
1 parent 154d07b commit b54924a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyttsx3/drivers/espeak.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, proxy):
# espeak cannot initialize more than once per process and has
# issues when terminating from python (assert error on close)
# so just keep it alive and init once
rate = _espeak.Initialize(_espeak.AUDIO_OUTPUT_RETRIEVAL, 1000)
rate = _espeak.Initialize(_espeak.AUDIO_OUTPUT_SYNCH_PLAYBACK, 1000)
if rate == -1:
raise RuntimeError("could not initialize espeak")
EspeakDriver._defaultVoice = "default"
Expand Down Expand Up @@ -134,7 +134,7 @@ def save_to_file(self, text, filename):
self._text_to_say = text
code = self.numerise(filename)
_espeak.Synth(
toUtf8(text), flags=_espeak.ENDPAUSE | _espeak.CHARS_UTF8, user_data=code
toUtf8(text), flags=_espeak.ENDPAUSE | _espeak.CHARS_AUTO, user_data=code
)

def _start_synthesis(self, text):
Expand Down

0 comments on commit b54924a

Please sign in to comment.