【发布时间】:2015-06-20 20:33:06
【问题描述】:
我正在尝试在 Python 脚本中使用 mpg123 将 .mp3 文件转换为 .wav 文件。如何下载和使用mpg123.exe?我正在使用Mac。
这是代码的 sn-p,看看它是如何使用的:
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)
【问题讨论】: