From
"MP3"[
^] topic at Wikipedia:
MPEG-1 or MPEG-2 Audio Layer 3 (or III),[4] more commonly referred to as MP3, is a patented digital audio encoding format using a form of lossy data compression.
So it requires the compression algo. Possibly you should search for a library.
:)