How to extract the raw data from a mp3 file using python?

后端 未结 3 2088
广开言路
广开言路 2020-12-29 00:04

I have got homework regarding audio data analysis using Python. I wonder is there any good module for me to use to extract the raw data from a mp3 file. I mean the raw data,

3条回答
  •  不知归路
    2020-12-29 00:09

    Have you tried opening the file in read binary mode?

    f = open("test.mp3", "rb")
    first16bytes = f.read(16)
    etc...
    

提交回复
热议问题