I've just done a general pass over the 'net looking for ways to automatically synchronize audio.
This seems to be a nontrivial topic due to the way subtle circumstantial variations seem to demand fundamentally different solutions.
In my case, I have several copies of the same streamed audio broadcast that was published on multiple online services, which I want to perform differential spectrographic analysis on so I can highlight and quantify poor encoding quality.
To achieve the above, I need to correct for the fact that the various copies of the broadcast are out of sync by between 500ms and 50 seconds due to some copies having pre-stream leadin and some not.
Furthermore, since some of the copies were streamed to services that perform remote encoding (like YouTube), subsample-level shifting may be required to get perfect phase alignment, to (IIUC) correct for encoding drift induced by network jitter during the stream upload. So phase analysis with subsample accuracy would be needed as a prerequisite.
The reason I want to automate this process is that the streams are between one and five hours long, and there are approximately two hundred of them, and I want to "perpetuate" the synchronization so everything stays perfectly in sync throughout the length of the track (ie to reverse the effects of network jitter).
I don't expect there's software out there for Linux that will achieve the above. (Especially not freeware, or better, open-source.)
Perhaps there are audio toolkits (with eg Python bindings) that can be scripted to achieve the results I'm looking for though? I think all I really need is 1) a way to get two audio tracks to mostly within a few milliseconds of each other, then 2) some kind of contraption that can direct a phase-realignment process.
Caveat emptor: I barely understand the concepts I'm describing above. If there are black-boxes out there that completely solve the subsample phase-alignment problem but need complete handholding everywhere else (eg to actually then do the synchronization/reencoding/everything else), that would be within my attention span. If I needed to look over literature, or go drown in DSP theory for a month to figure this out... I might, um, be taking a raincheck. :)