我测试了 pyttsx3,一切都是一样的,机器人声音,我无法改变这个声音
import pyttsx3
import os
texte = input("le texte à exprimer ? : ")
tts = pyttsx3.init()
tts.say(texte)
voices = tts.getProperty('voices')
tts.setProperty("voice", voices[1].id)
tts.runAndWait()
我尝试更改 setProperty("voice",voices[0].id) 但没有任何改变,不可能有美丽的女人声音 我在 Xubuntu 20.04 LTS 上,我放置了 ffmpeg 和其他库 当我在 Youtube 上查看具有完全相同代码的教程时,没问题,但在 Windows 上 你能帮我吗 皮埃尔
import pyttsx3
import os
texte = input("le texte à exprimer ? : ")
tts = pyttsx3.init()
tts.say(texte)
voices = tts.getProperty('voices')
tts.setProperty("voice", voices[1].id)
tts.runAndWait()
i tried to change setProperty("voice",voices[0].id) but nothing change, impossible to have a beautifull woman voice
I am on Xubuntu 20.04 LTS , i put ffmpeg and other lib
When i look a tuto on Youtube with exactly the same code, it is ok but with windows
Can you help me please
Pierre
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论