realpython / python-speech-recognition

Speech Recognition with Python examples
https://realpython.com/python-speech-recognition/
MIT License
243 stars 186 forks source link

unable to play .wav files on MS Windows #1

Closed rogererens closed 6 years ago

rogererens commented 6 years ago

I am unable to open these .wav files on multiple PCs, trying multiple Music players, e.g. VLC Media Player, Groove Music, Windows Media Player, ITunes, and following your speech recognition article for python. Can you provide files that can be used on MS Windows out of the box? Here is the Groove Music error message:

image

somacdivad commented 6 years ago

These files were created in Windows and I tested them on Linux, mac OS and Windows. I guess it's possible they were corrupted when I uploaded them. I will check when I get off work today. You may also try downloading them again as it could be possible they were corrupted at that point.

rogererens commented 6 years ago

When I drill down in Github's web interface to https://github.com/realpython/python-speech-recognition/blob/master/audio_files/harvard.wav I get this Download button at the right hand side, and a 'View Raw' link (with a kind of error message) in the middle of the screen. Both end up giving me the above mentioned result of corrupt files when downloaded. image

But fortunately, on the project page there's this green 'Clone or download' button, and after clicking that and choosing 'Download ZIP' I obtain a zip file which has the playable files after unpacking. image

Cloning the repo also results in .wav files that are OK to play (I should've tried this in the first place, of course).

So, it's probably some Github bug or limitation... non-intuitive, to say the least.

Thanks for your interesting article!