pip install -U compare-mp3
compare-mp3 a.mp3 b.mp3
from compare_mp3 import compare
if compare('a.mp3', 'b.mp3'):
print('Files contain the same audio')
Return values
compare_mp3.Result.SAME_FILE
Literally the same filecompare_mp3.Result.SAME_BITSTREAM
Files have the same bitstream (but may have different metadata)compare_mp3.Result.SAME_WAV
Files contain the same audio (as decoded by LAME)compare_mp3.Result.DIFFERENT
Completely different files