akgupta1337 / Shazzam-Clone

A Python project for audio fingerprinting using the Shazam algorithm. It utilizes libraries like NumPy, PyDub, Matplotlib, and SciPy to extract audio features, generate hashes, and compare audio signatures for song identification.
1 stars 2 forks source link

Cant we do something like a set here? would be good if u can explain why this was done. #3

Closed yasirysr47 closed 8 months ago

yasirysr47 commented 8 months ago

https://github.com/akgupta1337/Shazzam-Clone/blame/75b18e81d8cfbfc10710b79d5227942ee405dbec/logic/Shazzam.py#L154

akgupta1337 commented 8 months ago

So basically, In a song there can be some parts which are repeating, therefore they will have same hashes and time offets, therefore we drop them, the reason we did not used sets was because sets are not ordered, and we needed to store data in the correct order.

yasirysr47 commented 8 months ago

ok cool, that makes sense.

I will see how it performs when DB is of GB or TB of data