Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I wanted to know how can I convert the text to speech in python.

In .NET i used

Dim SAPI

Msg = 'Hi this is a test'

SAPI = CreateObject("sapi.spvoice")

SAPI.Speak(Msg)

1 Answer

0 votes
by (36.8k points)

You can use the pyttsx module. It uses this default MS speech recognition system.

import pyttsx

engine = pyttsx.init()

engine.say("Your Message")

engine.runAndWait()

 Master end-to-end Data Science through Data Scientist

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 20, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...