nateshmbhat / pyttsx3

Offline Text To Speech synthesis for python
Mozilla Public License 2.0
2.12k stars 332 forks source link

Segmantion fault (core dumped) upon reading a .txt file #68

Open ShoryaRawal opened 5 years ago

ShoryaRawal commented 5 years ago

Error : Segmentation fault (Core dumped)

code : import pyttsx3 engine = pyttsx3.init()

filePath = "/path/to/file" file = open(filePath, 'r') text = file.read() file.close() engine.say(str(text)) engine.runAndWait()

josephalway commented 4 years ago

That's not much to go on. What's the entire error log? What OS are you using, and/or what version of Python are you using?

MechaCoder commented 2 years ago

Hi

I am seeing the same problem, it seams to be the size of string; I am useing Python 3.7 with pipenv on linux.

                    tts = init()
                    tts.setProperty('voice', engineVoice)
                    tts.save_to_file(doc['content'][0:750], fn)
                    tts.runAndWait()