audio-source

How can I use audio file as audio source in SpeechRecognition in Python?

有些话、适合烂在心里 提交于 2021-02-04 16:36:12
问题 I used speech_recognition.AudioFile in Python 3.6 , but this error was indicated: AttributeError: module 'speech_recognition' has no attribute 'AudioFile' This is my code: #!/usr/bin/env python3 import speech_recognition as sr # obtain path to "english.wav" in the same folder as this script from os import path AUDIO_FILE = path.join(path.dirname(path.realpath(__file__)), "english.wav") # AUDIO_FILE = path.join(path.dirname(path.realpath(__file__)), "french.aiff") # AUDIO_FILE = path.join(path

Amazon S3 tags when put together if more then five then the combination doesn't play? What might be the reason? I am trying to play this--

帅比萌擦擦* 提交于 2020-01-07 08:34:07
问题 <speak> <audio src = "https://s3.amazonaws.com/morsecodesounds/Is.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Ie.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Il.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Ie.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Ic.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/It.mp3" /> </speak> This is what i tested on the alexa developer console did not play it. 回答1: Just to