Answer the question
In order to leave comments, you need to log in
Library for getting data from audio files (Python)
Need a Python library to get audio stream in bytes from mp3/wav.
Ultimately, you need the following. There is an array A=[1,6,255,7,...] (integers) that needs to be packed into mp3/wav. Then perform the reverse procedure (unpack mp3/wav into A=[1,6,255,7,...]).
In principle, the option is also suitable for real numbers, the main thing is that the restoration to the original array works (it is possible with a small error).
PS As an option, a library (functions) for C / C ++, Mathematica, sage, JavaScript is suitable.
Answer the question
In order to leave comments, you need to log in
If one-time, in audacity, and any other audio editor, there is a project-import raw file function. It is enough to save this stream of bytes and that's it.
In python - docs.python.org/library/wave.html
In matlab/octave (I recommend) wavread.
mp3 I would have already made from wav using lame.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question