'Pyttsx3 cutting out some speech?

So I'm using the pyttsx3 method to convert some text into a file. My code is as such


text = open('script.txt','r').read()
engine = pyttsx3.init()
engine.save_to_file(text,'audio.wav')

engine.runAndWait()

The file saves but it will randomly stop at periods and commas ie. Script is 'Hi. How are you doing?' but the audio is 'Hi.' Does this have anything to do with my system? How would I remedy this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source