Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I estimate if in recorded sound samples is present an echo caused from walls reflection ? (maybe there are multiples echoes: delayed, attenuated versions of the signal itself).

I'm recording several sound samples in my room and I suppose that in the recorded audio samples is present an echo image of the original sound. How do I verify if this is true and in case, how can I calculate the samples delay (ms echo reflection time from the walls) ?

I plot the cross-correlation of the samples with itself (xcorr in MATLAB, about 40000 samples, ~1 second) but I don't know which pattern to look for to check if one or more echoes are present.


If I can understand the presence of the max peak in the middle of the graph, what are all the others equally spaced peaks on the both sides of the xcorr plot ? Eventually, how do I estimate the echo parameters from the recorderd samples (ms delay or samples delay) ?

share|improve this question

The side peaks could be the result of periodic structure in your input signal (say around on the order of 8-10Hz, plus a 2nd harmonic).

If you are creating the sound samples, try playing pseudo-random noise, which has good autocorrelation properties for a long enough sample, notably tight peaks & aperiodic.

2nd John's answer. You can do a back-of-the-envelope estimate of the max echo lag (assume a few reflections) using the speed of sound & room size.

share|improve this answer

Try limiting the max lag of the xcorr based on the largest delay that you care about.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.