idiap / apkit

Audio processing toolkit
MIT License
3 stars 1 forks source link

Why doa has a dimension of 3 in compute_delay #1

Open Ryuk17 opened 3 years ago

Ryuk17 commented 3 years ago

Thanks for your sharing. I meet a question when using compute_delay, the definition is as follow:

def compute_delay(m_pos, doa, c=340, fs=None):
    """Compute delay of signal arrival at microphones.

    Args:
        m_pos : microphone positions, (M,3) array,
                M is number of microphones.
        doa   : normalized direction of arrival, (3,) array or (N,3) array,
                N is the number of sources.
        c     : (default 340) speed of sound (m/s).
        fs    : (default None) sample rate.

I feel confused that what the meaning of 3 in doa as shape of (3, ), could you tell me what the 3 stands for?

hwp commented 2 years ago

DOA is represented as a 3D vector on a sphere.