pyttsx文字转语音输出 文字语音播报

安装pyttsx

import pyttsx
engine = pyttsx.init()
engine.say('Hello World')
engine.say('你好')
engine.runAndWait()

在这里插入图片描述
在python命令行下运行正常在Spyder下运行报错

猜你喜欢

转载自blog.csdn.net/weixin_33595571/article/details/84963909