I struggle to find a way to retrieve the audio fingerprint data from given songs. I tagged those songs with MusicBrainz before and now I want to read it directly from the audiofile. The only way I found with musicbrainzngs was to search (musicbrainzngs.search_artists()) for the song in the MusicBrainz library to find the fingerprint data which is rather inefficient since I have the data in my files already.
Is there a library where I can read it from any given audiofile?
The AcoustID fingerprint is stored in audiofiles, yes, if you tagged your files using MusicBrainz Picard. What tag exactly depends on the audio file:
TXXX:Acoustid FingerprintACOUSTID_FINGERPRINT----:com.apple.iTunes:Acoustid FingerprintSee the Musicbrainz tag mapping overview.
You can read audiofile tags with the
mutagenproject, which is what Picard uses too: