O
O
okazymyrov2011-09-08 21:33:19
Python
okazymyrov, 2011-09-08 21:33:19

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

2 answer(s)
M
megalol, 2011-09-08
@okazymyrov

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.

B
bagyr, 2011-09-09
@bagyr

Mathematica with Wav works stupidly through Import/Export.
Through SOX, you can overtake files to / from raw and read through open ().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question