How to convert MP3 to WAV in Python

前端 未结 3 1460
无人及你
无人及你 2020-12-05 02:09

If I have an MP3 file how can I convert it to a WAV file? (preferably, using a pure python approach)

3条回答
  •  囚心锁ツ
    2020-12-05 02:57

    This is working for me:

    import subprocess
    subprocess.call(['ffmpeg', '-i', 'audio.mp3',
                       'audio.wav'])
    

提交回复
热议问题