There is a certain audio file, it has data about the picture, about the name of the song and the author, about the duration of the audio file, etc. This data can be obtained by going to the properties of the file itself in Windows. And how can you get this data in python and then use it?

I about them:

enter image description here

1 answer 1

Library eyeD3 for working with audio files. Documentation to it.

In short, then:

import eyeD3 tag = eyeD3.Tag() tag.link('/file.mp3') print (tag.getArtist()) print (tag.getAlbum()) print (tag.getTitle()) 
  • And you can use a specific example of extracting a picture from an audio file. And then I did not even find this. - Michael Shcherbakov