I've been trying to create a waveform image and I'm getting the raw data from the .wav
file using song = wave.open()
and song.readframes(1)
, which returns:
b'\x00\x00\x00\x00\x00\x00'
How can I split this into three separate parts, e.g. b'\x00\x00'
, b'\x00\x00'
, b'\x00\x00'
because each frame consists of 3 parts (each is 2 bytes wide) so I need the value of each individual part to be able to make a wave form.