Is there a way to read frames of .wav format binary data? I am streaming .wav binary to a python server which I want to be able to read and use from processing by pyaudio, which complains about the frame size.
Since I cannot use wave.open('filename.wav')
, because I already have the binary data being streamed, is there a way to read the binary data so that I can use the readframes
method in the wave
python library?
EDIT:
I tried streaming readframes
from the client side, however pyaudio gives an error that the bytes are not in .wav format. It would be ideal however if I can get this done on the server.
getnframes
orreadframes
? I don't see agetframes
in the documentation. – Scandentfile
methods that are needed bywave
and pass it towave.open
: "If file is a string, open the file by that name, otherwise treat it as a seekable file-like object." – Scandent