I am using python 3.10 and PYTTSX3 2.9 to convert a text into an audio file. I start with a very basic code:
import pyttsx3
engine = pyttsx3.init()
engine.say("Hello, this is a sample text to speech conversion.")
engine.runAndWait()
engine.say("This is a test to see if the second code works.")
engine.runAndWait()
From the code I should hear two texts, but after hearing "Hello, this is a sample text to speech conversion." the code stops and the kernel dies.
Any help would be much appreciated! Thanks in advance :)