📜  如何更改 pyttsx3 的声音 - 任何代码示例

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

代码示例1
import pyttsx3
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id) #changing index changes voices but ony 0 and 1 are working here
engine.say('Hello World')
engine.runAndWait()