worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.36k stars 1.43k forks source link

recognition a file -> a song #244

Open HuongNV96 opened 3 years ago

HuongNV96 commented 3 years ago

Hi all, When I try recognition a file song , results are tow song ,

{'total_time': 5.804500102996826, 'fingerprint_time': 0.0436863899230957, 'query_time': 5.112560033798218, 'align_time': 0.6241583824157715, 'results': [{'song_id': 24549, 'song_name': b'2 My House.mp3001', 'song_type': b'EDM', 'input_total_hashes': 1798, 'fingerprinted_hashes_in_db': 2566, 'hashes_matched_in_input': 157, 'input_confidence': 0.09, 'fingerprinted_confidence': 0.06, 'offset': 1, 'offset_seconds': 0.04644, 'file_sha1': b'ADECD61F90150499FDBD74A94ABB27B88E696B89'}, {'song_id': 3341, 'song_name': b'2 My House.mp3020', 'song_type': b'EDM', 'input_total_hashes': 1798, 'fingerprinted_hashes_in_db': 2554, 'hashes_matched_in_input': 123, 'input_confidence': 0.07, 'fingerprinted_confidence': 0.05, 'offset': 108, 'offset_seconds': 5.01551, 'file_sha1': b'6E87530CE34D68D200D2E816618E9C1B59342135'}]}

Now I only want to have a song in result. Can you help me to modify code ?

Best Regards, HuongNV