speech_recognition
speech_recognition copied to clipboard
if you run sr.AudioFile() and the name of the file it says: ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format and it says it for every audio type
Steps to reproduce
- (How do you make the issue happen? Does it happen every time you try it?)
- (Make sure to go into as much detail as needed to reproduce the issue. Posting your code here can help us resolve the problem much faster!)
- (If there are any files, like audio recordings, don't forget to include them.)
Expected behaviour
(What did you expect to happen?)
Actual behaviour
(What happened instead? How is it different from what you expected?)
(If the library threw an exception, paste the full stack trace here)
System information
(Delete all the statements that don't apply.)
My system is <INSERT SYSTEM HERE>. (For example, "Ubuntu 16.04 LTS x64", "Windows 10 x64", or "macOS Sierra".)
My Python version is <INSERT VERSION HERE>. (You can check this by running python -V
.)
My Pip version is <INSERT VERSION HERE>. (You can check this by running pip -V
.)
My SpeechRecognition library version is <INSERT VERSION HERE>. (You can check this by running python -c "import speech_recognition as sr;print(sr.__version__)"
.)
My PyAudio library version is <INSERT VERSION HERE> / I don't have PyAudio installed. (You can check this by running python -c "import pyaudio as p;print(p.__version__)"
.)
My microphones are: (You can check this by running python -c "import speech_recognition as sr;print(sr.Microphone.list_microphone_names())"
.)
My working microphones are: (You can check this by running python -c "import speech_recognition as sr;print(sr.Microphone.list_working_microphones())"
.)
I installed PocketSphinx from <INSERT SOURCE HERE>. (For example, from the Debian repositories, from Homebrew, or from the source code.)
@jacs121 I want to help to resolve this reported issue.
Could you add details following to the issue template? It will likely take us a solution.