我测试了文本转语音模块,即 pyttsx3,它运行良好,但是在打印文本时我没有听到女性的声音。在将性别从男性更改为女性方面有什么建议吗?顺便说一句,我在树莓派上,并且正在使用 Linux 操作系统。
先感谢您
tts.py
engine = pyttsx.init()
voices = engine.getProperty('voices')
for voice in voices:
engine.setProperty('voice', voice.id)
engine.say('The quick brown fox jumped over the lazy dog.')
engine.runAndWait()