gurushida / mnemophonix

A simple audio fingerprinting system
MIT License
28 stars 5 forks source link

Estimate the time in sample where the matched song started playing #3

Open felinejj opened 1 year ago

felinejj commented 1 year ago

Great little repository here 👍

I'm trying to use it to detect songs played during a radio broadcast. I'm able to find the matching result just fine but I was wondering if it would be possible to also detect where in the sample the matched song started playing. For example, in a 5 minute sample, an indexed song starts playing around the 1 minute mark, I would like to be able to detect both the matching song and the estimated time at which it started (~60 seconds).

I expanded the signature struct to also include a time property which contains the position in the indexed track when the spectral image was constructed, but I'm wondering if this would ultimately give me the results I want. Do you have any suggestions/advice on how I can extend the project to support this?

gurushida commented 1 year ago

I think it would work, yes. And if you are going to add time information in the signature to be able to know where in the sample a match occurred, I guess you would then get for free the time position of the content that was matched. You would be able to get results like "at 3:23 in the input, there is a match from position 0:32 in 'Stairway to heaven'".