📜  用于将文本转换为音频的 python 库 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:21.964000             🧑  作者: Mango

代码示例1
import pyttsx3.
# initialize Text-to-speech engine.
engine = pyttsx3.init()
# convert this text to speech.
text = "Python is a great programming language"
engine.say(text)
# play the speech.
engine.runAndWait()