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

时间:2019-11-21 06:30:41

标签: python machine-learning speech-recognition speech-to-text

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)卡类型无效

0 个答案:

没有答案