how to make python speak

Do you want to know the information about “how to make python speak”. If yes, you’re in the correct post.

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()
from win32com.client import Dispatch

speak = Dispatch("SAPI.SpVoice")

speak.Speak("Ciao")
#pip3 install pyttsx3
#apt-get install alsa-utils
import pyttsx3, time 
engine = pyttsx3.init() 
engine.say("Hi, I am text to speach") 
engine.runAndWait()

Final Words

I hope this tutorial helps you to know about “how to make python speak”. If you have any doubts regarding this post please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment