I have a basic code of checking audio similarity between any 2 audio files.
I am using chromaprint
and pyacousitic
library for checking similarity of 2 audio and its giving me a score of 50-100 range based on similarity.
I need a way to extract or at least be able to tell at this timestamp the audio is similar.
So far I haven't been able to find any way to do this or is it even possible?
Didn't get anything to try to extract the matching audio timestamp.
import acoustid
import chromaprint
duration, fp_encoded = acoustid.fingerprint_file('music.mp3')
fingerprint, version = chromaprint.decode_fingerprint(fp_encoded)
print(fingerprint)
duration1, fp_encoded1 = acoustid.fingerprint_file('music1.mp3')
fingerprint1, version1 = chromaprint.decode_fingerprint(fp_encoded1)
print(fingerprint1)
from fuzzywuzzy import fuzz
similarity = fuzz.ratio(fingerprint1, fingerprint)
print(similarity)
52