wav file to array python

Solutions on MaxInterview for wav file to array python by the best coders in the world

showing results for - "wav file to array python"
Juan Manuel
05 May 2019
1from scipy.io import wavfile
2
3#To read your file ('filename.wav'), simply do
4
5output = wavfile.read('filename.wav')
Mariana
14 Mar 2017
1from scipy.io import wavfile
2#To read your file ('filename.wav'), simply do
3
4output = wavfile.read('filename.wav')
5#This will output a tuple (which I named 'output'):
6
7#output[0], the sampling rate
8#output[1], the sample array you want to analyze