Search code examples
javaperlaudiocore-audioperl-module

Finding the delay in the stereo output in a recorded audio file


I am new in the Audio domain.I am recording a file(".wav") from my Java program .I need to measure the time delay between 2 channels in the audio signal. i.e if channel 1 in '.wav' file starts at x time and channel 2 starts in y time.I need to find by how much time is the channel 2 or 1 is lagging


Solution

  • Cross correlation between two data vectors (channels) is one DSP method of determining lag or delay between the two vectors.