restore time shifted audio

1 view (last 30 days)
Aravind Srinivas
Aravind Srinivas on 23 Sep 2019
Hello,
I have stereo wave file, However, the two stereo channels are time-shifted. Which is easy model to restore the file to the original?
I have a partial solution something like :
  1. Loading file like, [data,fs]=audioread('xyz.wav');
  2. calculating the power spectrums of each channel using fft, fourier1 = fft(data(:,1),1024);
  3. get power spectrum channel 1 and channel, Powspec_1 = fourier1.*conj(fourier1)/1024;
  4. Normalizing the specturm
  5. Then compute cross correlation between these pair of signals
I can't understand the next steps to get originale file.
Regards,
PS: this is assignment so I need simple model, thereby I can work up on expermenting more fullproof models

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!