Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About gcc_phat funtion #6

Open
jasdasdf opened this issue Sep 2, 2020 · 3 comments
Open

About gcc_phat funtion #6

jasdasdf opened this issue Sep 2, 2020 · 3 comments

Comments

@jasdasdf
Copy link

jasdasdf commented Sep 2, 2020

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
Copy link

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
Copy link
Owner

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants