Himanshu Chaudhary
Himanshu Chaudhary

Reputation: 25

Find number of times recognized audio repeat in the source

I want to find the number of times a snippet of audio is repeated in another audio. There are libraries like https://github.com/worldveil/dejavu which can be used to create fingerprints of audio after that it can be used for recognition but it only tells whether the snippet exists in audio or not, it does not give count.

Is there any way to make changes to find the number of times the recorded audio repeats in the source(any audio from database)?

Thanks

Upvotes: 0

Views: 443

Answers (2)

Jon Nordby
Jon Nordby

Reputation: 6259

One could use the approach and Python code detailed in How to find out how many times a specific audio repeats in another longer audio? to get a list of matches for query in a specific file. Then run this for each file in the database, and then count up the number of matches.

Upvotes: 0

lollercoaster
lollercoaster

Reputation: 16493

If it's an exact copy, you may want to convolve said audio with the source audio you're trying to extract from. Then the peaks from the convolution will show you where the offset is.

Upvotes: 0

Related Questions