pyttsx3 icon indicating copy to clipboard operation
pyttsx3 copied to clipboard

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

Open ShoryaRawal opened this issue 5 years ago • 2 comments

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()

ShoryaRawal avatar Sep 23 '19 15:09 ShoryaRawal

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?

josephalway avatar Dec 09 '19 18:12 josephalway

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()

MechaCoder avatar Oct 27 '21 21:10 MechaCoder