当我尝试运行此程序时,我尝试构建一个简单的语音识别(语音到文本)Python程序

import speech_recognition as sr
r = sr.Recognizer()
with sr.microphone() as source:
    audio = r.listen(source)
try:
    print("JARVIS : "+r.recognize_google(audio))
except Exception:
    print("Something went Wrong !!!!!!")

错误= ALSA库脉冲.c:243:(pulse_connect)PulseAudio:无法连接:连接被拒绝         ALSA lib pcm_usb_stream.c:486:(_ snd_pcm_usb_stream_open)卡的无效类型         ALSA lib pcm_usb_stream.c:486:(_ snd_pcm_usb_stream_open)卡类型无效

syxiaoyongqq 回答:当我尝试运行此程序时,我尝试构建一个简单的语音识别(语音到文本)Python程序

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3060430.html

大家都在问