This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wave | |
import pylab | |
import os | |
import numpy as np | |
def readwavefile(filename): | |
""" | |
Reads a WAV file and returns all the frames converted to floats and the framerate. | |
""" | |
assert os.path.exists(filename) and os.path.isfile(filename) |