#pip3 install pyttsx3 #apt-get install alsa-utils import pyttsx3, time engine = pyttsx3.init() engine.say("Hi, I am text to speach") engine.runAndWait()
import pyttsx3 s = pyttsx3.init() data = "Sample Text" s.say(data) s.runAndWait()