I'm trying to read data from a .wav file and store it in an array as such:
out = struct.unpack_from("%dh" % num_frames * num_channels, frames)
self.data = array(out)
When I try this I get the error:
self.data = array(out)
TypeError: must be char, not tuple
What's causing this error? Are all the values in out
not the same type? Shouldn't they all be negative or positive integers?