How can I make Python speak with mbrola?

757 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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()