from scipy.io import wavfile samplerate, data = wavfile.read('./output/audio.wav') # method 2 import librosa #Store the sampling rate as `sr` y, sr = librosa.load(filename)