I want to use Python to access a wav-file and write its content in a form which allows me to analyze it (let\'s say arrays).
You can also use the wave module along with the numpy.fromstring() function to convert it to an array
import wave
import numpy
fp = wave.open('test.wav')
nchan = fp.getnchannels()
N = fp.getnframes()
dstr = fp.readframes(N*nchan)
data = numpy.fromstring(dstr, numpy.int16)
data = numpy.reshape(data, (-1,nchan))