Locate one audio clip within another (needle/haystack)
Posted: Fri Apr 27, 2012 6:46 am
I have an audio processing challenge that I'm beginning to think is impossible to automate... here it is:
Let's say I have 100 audio clips (the "haystack" clips) that all contain the same sound effect (the "needle" clip), which is very distinct and easily recognized. I want to split the haystacks based on the position of the needle. How can I precisely locate (down to the millisecond) the needle in the haystack, preferably through automated means (command line or scripting)?
If audio tracks were text strings, what I'd be looking for is a function like strpos() or indexOf(), but with a tolerance parameter for imperfect matches.
After many Google searches I've come up empty. Any ideas?
Let's say I have 100 audio clips (the "haystack" clips) that all contain the same sound effect (the "needle" clip), which is very distinct and easily recognized. I want to split the haystacks based on the position of the needle. How can I precisely locate (down to the millisecond) the needle in the haystack, preferably through automated means (command line or scripting)?
If audio tracks were text strings, what I'd be looking for is a function like strpos() or indexOf(), but with a tolerance parameter for imperfect matches.
After many Google searches I've come up empty. Any ideas?