Additional Python packages such as scikits.audiolab
and numpy
I want to read a wav file in a situation where it cannot be entered.
Read with wave
, ʻarray`.
import wave
import array
wavdata = wave.open(YOUR_WAV_FILE).readframes(-1)
audio = array.array("h", wavdata) #When the bit width of wav is 16bit
Recommended Posts