how to load wav file with python

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)

Here is what the above code is Doing:
1. The first line imports the wavfile module from the scipy.io package.
2. The second line reads the audio file and stores the sampling rate in `samplerate` and data in `data`.
3. The third line imports the librosa package.
4. The fourth line stores the sampling rate as `sr` and the data in `y`.

The sampling rate is the number of data points sampled per second in the audio file.