I’m looking to use AcousticBrainz to do some lighting synchronization using the beat timing info available in the low-level API. So far it looks very promising and almost works for my application.
My difficulty is that I need to get AcoustID from an audio sample that may be slightly offset from the recording the that the MusicBrainz MBID is based on. This is almost always just 10ms - 2000ms of silence at the beginning of my version of the recording; the actual recording is identical.
Can anyone think of a way to calculate the offset I will need to apply to get the AcousticBrainz data to line up? The only approach I’ve come up so far is to use the Essentia toolkit and reprocess my sample file over and over, trimming a tiny bit off the front each time until the metadata aligns. That seems slow and wasteful.
Is there a better way to get to “audio file X is the same as recording MBID YYYY, if you trim off Z samples from the file”?