pyttsx3 没有音频输出
我尝试了许多不同的代码行,但无法获得任何输出。它可以很好地读取麦克风的内容,但不会说什么。我已经为此工作了三天,但无法发表任何演讲。我也尝试过 pyttsx3 的 2.7 版本和最新版本,我使用的是 win 11
import speech_recognition as sr
import pyttsx3
listener = sr.Recognizer()
engine = pyttsx3.init() #I've tried "dummy" and "sapi5" also
engine.setProperty('rate', 150)
engine.setProperty('volume', 1)
engine.say("What's up")
engine.runAndWait()
I've tried many different lines of code and can't get any output. It reads the mic just fine but won't say anything. I've been working on this for 3 days and can't get any speech out. I've also tried version 2.7 of pyttsx3 and the latest version, I"m on win 11
import speech_recognition as sr
import pyttsx3
listener = sr.Recognizer()
engine = pyttsx3.init() #I've tried "dummy" and "sapi5" also
engine.setProperty('rate', 150)
engine.setProperty('volume', 1)
engine.say("What's up")
engine.runAndWait()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论