mp3 - How to use mpg123.exe in a Python script -
i trying use mpg123 in python script convert .mp3 file .wav file. how download , use mpg123.exe
? using mac.
here snippet of code see how it's being used:
mpg123_command = '..\\mpg123-1.12.3-x86-64\\mpg123.exe -w "%s" -r 10000 -m "%s"' out_file = 'temp.wav' cmd = mpg123_command % (out_file, mp3_file) temp = subprocess.call(cmd)
you can try mac osx port: http://sourceforge.net/projects/mosx-mpg123/
Comments
Post a Comment