📌  相关文章
📜  pyttsx3 NameError: name 'voices' is not defined - Python 代码示例

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

代码示例1
engine = pyttsx3.init() # Object Creation

voice = engine.setProperty('voice', voices[0].id)

engine.say("I will speak this text")
engine.runAndWait()