eyed3

Create new ID3 tag using python and eyed3

孤街醉人 提交于 2019-12-01 16:14:14
I have a bunch of mp3 files that have no ID3 tag at all. I am trying to use eyed3 to add an ID3 tag to the files, but cannot figure out what method to use. Here is my code: import eyed3 file = eyed3.load("test.mp3") file.tag.artist = u"MP3 Artist" I get the following error: "AttributeError: 'NoneType' object has no attribute 'artist'" I have figured out that it is because the MP3 file doesn't have any ID3 tag at all. If I do this using other MP3 files that already have tags, it works fine. How do I attach a new ID3 tag to the MP3? You need to run initTag first to initialize the tag: import

Create new ID3 tag using python and eyed3

时光总嘲笑我的痴心妄想 提交于 2019-12-01 15:56:03
问题 I have a bunch of mp3 files that have no ID3 tag at all. I am trying to use eyed3 to add an ID3 tag to the files, but cannot figure out what method to use. Here is my code: import eyed3 file = eyed3.load("test.mp3") file.tag.artist = u"MP3 Artist" I get the following error: "AttributeError: 'NoneType' object has no attribute 'artist'" I have figured out that it is because the MP3 file doesn't have any ID3 tag at all. If I do this using other MP3 files that already have tags, it works fine.

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

落花浮王杯 提交于 2019-11-30 13:06:02
问题 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, not the metadata, id3 tags. I know how to use the wave module to process .wav files. I can readframes to get the raw data. But I don't know how to do with mp3. I have searched a lot on google and stackoverflow and find eyeD3 . But unfortunately the documentation is rather frustrating and now the version is 0.7.1,

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

怎甘沉沦 提交于 2019-11-30 05:27:49
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, not the metadata, id3 tags. I know how to use the wave module to process .wav files. I can readframes to get the raw data. But I don't know how to do with mp3. I have searched a lot on google and stackoverflow and find eyeD3 . But unfortunately the documentation is rather frustrating and now the version is 0.7.1, different from most examples I can find on the Internet. Is there any good module that can extract raw data