I want to read the wav file in python.
>>import specie
>>> from scope importio
>>>> from scipy.io import wavfile
>>>sample_rate,X=scipy.io.wavfile.read("test.wav")
ValueError: Not a WAV file.
I want to read the wav file as above, but I get an error.
The file type is shown as WAVE audio.
What's wrong?I'm using a mac, but can't I handle wav well with a mac?
Also, the above story is based on Chapter 9 of the Practical Machine Learning System, and the last part above is
>>sample_rate,X=scipy.io.wavfile.read(wave_filename)
It says that it reads all the data in the folder.
Is that possible?
I would like to know if there is a way to read music data together instead of one by one.
Thank you for your cooperation.
Not a WAV file
As the error message says, it is not a WAV file.
Have you tried to see if this file can be played by players?
© 2025 OneMinuteCode. All rights reserved.