1#pip install pyttsx3
2import pyttsx3
3# simple code... you need to create the engine once but you need to add
4#runAndWait everytime you use the engine
5engine = pyttsx3.init()
6engine.say('HELLO THERE')
7engine.runAndWait()
1from win32com.client import Dispatch
2
3speak = Dispatch("SAPI.SpVoice")
4
5speak.Speak("Ciao")
1#pip3 install pyttsx3
2#apt-get install alsa-utils
3import pyttsx3, time
4engine = pyttsx3.init()
5engine.say("Hi, I am text to speach")
6engine.runAndWait()