wav file to array python code example
Example 1: wav file to array python
from scipy.io import wavfile
#To read your file ('filename.wav'), simply do
output = wavfile.read('filename.wav')
#This will output a tuple (which I named 'output'):
#output[0], the sampling rate
#output[1], the sample array you want to analyze
Example 2: wav file to array python
from scipy.io import wavfile
#To read your file ('filename.wav'), simply do
output = wavfile.read('filename.wav')