Answers for "how to make python speak"

3

how to make python speak

#pip install pyttsx3
import pyttsx3
# simple code... you need to create the engine once but you need to add
#runAndWait everytime you use the engine
engine = pyttsx3.init()
engine.say('HELLO THERE')
engine.runAndWait()
Posted by: Guest on May-26-2021
0

how to make python speak

from win32com.client import Dispatch

speak = Dispatch("SAPI.SpVoice")

speak.Speak("Ciao")
Posted by: Guest on March-26-2020
0

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()
Posted by: Guest on July-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language