from the documentation, I use:
import simpleaudio as sa sample_rate, data = read(WAVE_FILE_PATH) data = data.astype(np.int1