Read MP3 in Python 3

前端 未结 7 1255
面向向阳花
面向向阳花 2020-12-15 03:46

What I want to do is simply

mp3 = read_mp3(mp3_filename)
audio_left = mp3.audio_channels[0]

where audio_left will contain raw PCM audio dat

7条回答
  •  长情又很酷
    2020-12-15 04:23

    I ended up using an mpg123 subprocess to convert the mp3 to wav, and then I use scipy.io.wavfile.read to read the wav file.

提交回复
热议问题