speak in python code example
Example 1: text to sound python
#pip3 install pyttsx3
#apt-get install alsa-utils
import pyttsx3, time
engine = pyttsx3.init()
engine.say("Hi, I am text to speach")
engine.runAndWait()
Example 2: how to make python speak
from win32com.client import Dispatch
speak = Dispatch("SAPI.SpVoice")
speak.Speak("Ciao")