20tab / mpg123-python

mpg123 python wrapper
MIT License
15 stars 7 forks source link

Question - Conversion #1

Open VeNoMouS opened 6 years ago

VeNoMouS commented 6 years ago

Do you know of a way I could do output the following transcode to a new wav.

-r 8000 --8bit -m

Using your wrapper, I would assume its something to do with Out123, I've looked at the mpg123 library API, but nothing really jumps out?

rdeioris commented 6 years ago

Hi, you have to do manually once you get the uncompressed stream. Just use numpy to reduce the value from -32768+32767 range to -128+127 and so on