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).
pydub provides an even easier solution without any dependencies needing to be installed (for wav files). I'm currently using this method in production without any issues.
from pydub import AudioSegment
awesome_song = AudioSegment.from_wav('awesome_song.wav')
print('Duration in seconds is {}'.format(awesome_song.duration_seconds))