def read_audio(fname):
    """ Load an audio file and return PCM along with the sample rate """

    wav, sr = sf.read(fname)
    assert sr == 16e3

    return wav, 16e3
Load an audio file and return PCM along with the sample rate
examples/wav2vec/wav2vec_featurize.py