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?
Locate one audio clip within another (needle/haystack)
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
-
waxcylinder
- Forum Staff
- Posts: 14687
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Locate one audio clip within another (needle/haystack)
And if wishes were horses, beggars would ride ...
I suspect there is a big reason why your googling yielded naught - and that's because it can't be done, not without a super-computer and a lot of cute, tricky coding anyway.
WC
I suspect there is a big reason why your googling yielded naught - and that's because it can't be done, not without a super-computer and a lot of cute, tricky coding anyway.
WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
Re: Locate one audio clip within another (needle/haystack)
Possible lead ...
Plugins like Kn0ck0ut use the spectral subtraction method ... http://www.freewebs.com/st3pan0va/
if the needle sound is spectrally subtracted from the haystack sound, the greatest reduction in the haystack amplitude will occur when the needle sound is aligned with the needle in the haystack.
This would mean applying something like Kn0ck0ut repeatedly, [million x], which could be very time consuming.
Plugins like Kn0ck0ut use the spectral subtraction method ... http://www.freewebs.com/st3pan0va/
if the needle sound is spectrally subtracted from the haystack sound, the greatest reduction in the haystack amplitude will occur when the needle sound is aligned with the needle in the haystack.
This would mean applying something like Kn0ck0ut repeatedly, [million x], which could be very time consuming.