Duque
Duque

Reputation: 11

How can I make Python speak with mbrola?

I need to create a Python program, which will speak the numbers chosen randomly. Like, Python gives me number 11, and with mbrola, it says "eleven". It's very simple, I've created almost everything, but the only thing I need is - make Python speaks it using mbrola!

Please, could you give me some examples?

Upvotes: 0

Views: 785

Answers (1)

Eli Sadoff
Eli Sadoff

Reputation: 7308

There is a python module called pyttsx which speaks things. You can install it by using pip install pyttsx and then use it as such

import pyttsx as tts
engine = tts.init()
engine.say('Eleven')
engine.runAndWait()

Upvotes: 1

Related Questions