Back
I wanted to know how can I convert the text to speech in python.
In .NET i used
Dim SAPIMsg = 'Hi this is a test'SAPI = CreateObject("sapi.spvoice")SAPI.Speak(Msg)
Dim SAPI
Msg = 'Hi this is a test'
SAPI = CreateObject("sapi.spvoice")
SAPI.Speak(Msg)
You can use the pyttsx module. It uses this default MS speech recognition system.
import pyttsxengine = pyttsx.init()engine.say("Your Message")engine.runAndWait()
import pyttsx
engine = pyttsx.init()
engine.say("Your Message")
engine.runAndWait()
Master end-to-end Data Science through Data Scientist
31k questions
32.8k answers
501 comments
693 users