xiongyihui / tdoa

TDOA based on GCC-PHAT
Apache License 2.0
173 stars 65 forks source link

About gcc_phat funtion #6

Open jasdasdf opened 4 years ago

jasdasdf commented 4 years ago

Hi, the function gcc_phat(sig, refsig, fs=1, max_tau=None, interp=16): what do max_tau and interp stand for,respectively. thanks a lot.

Abbas1192 commented 3 years ago

Hi, the function gcc_phat(sig, refsig, fs=1, max_tau=None, interp=16): what do max_tau and interp (why 16?) stand for,respectively. thanks a lot.

xiongyihui commented 3 years ago

max_tau is the max offset of sig and refsig. For DOA, max_tau depends on the distance of two microphone. interp is interpolation, used to improve the resolution of the offset. when interp is 1, the resolution of the offset is 1. when interp is 2, the resolution of the offset is 0.5.

Abbas1192 commented 3 years ago

Great, Thanks for the answer, So, In my data, the sampling frequency is 20KHz. Do you think that interp can be 1? Also, fs is 1 in your code, should I put fs=20KHz? Or fs is another thing that I do not know.