有没有办法使用语音识别从网站读取音频?

时间:2021-01-21 14:08:45

标签: python python-3.x audio speech-recognition text-to-speech

我尝试使用语音识别来读取我的音频:

  recognizer = speech_recog.Recognizer()
  sample_audio = speech_recog.AudioFile('sound.wav')

  with sample_audio as audio_file:
      audio_content = microfone.record(audio_file)
      aaa = microfone.recognize_google(audio_content, language='en-US')

但如果我有这个网址:“https://content.blubrry.com/flowpdc/EXTRA_FLOW_28.mp3”

有没有办法不用下载这个mp3就可以使用speech_recognition?

0 个答案:

没有答案