Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个Python程序,它会说出随机选择的数字。就像,Python给我 11 号,用mbrola,它说“十一”。这很简单,我几乎创建了所有东西,但我唯一需要的是 - makePython使用mbrola!
Python
mbrola
请问,你能给我一些例子吗?
有一个名为的 python 模块pyttsx可以说话。您可以通过 using 安装它pip install pyttsx,然后按原样使用它
pyttsx
pip install pyttsx
import pyttsx as tts engine = tts.init() engine.say('Eleven') engine.runAndWait()