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 struct | |
def read_wave_raw(filename): | |
""" | |
Just pass in a filename and get bytes representation of | |
audio data as result | |
:param filename: a wave file | |
:param rate: | |
:return: tuple -> data, #channels, samplerate, datatype (in bits) |