Splitting one channel into two using 2 into 1 stereo cable giving me ZERO lags ? help !

5 ビュー (過去 30 日間)
Ali Soban
Ali Soban 2018 年 1 月 18 日
コメント済み: Ali Soban 2018 年 1 月 19 日
Now that I'm using two condenser microphone inputs to a single channel , I'm getting zero lags ! ? This shouldn't happen since I'm placing the two mics at quite a distance for audio localization . But still getting the same result and 89 degrees or 90 degrees angle each time ! Can some one share a better code of sound localization using generalized cross correlation on two condenser mics connected to your laptop? Please help! Since it is the only hurdle in my project. Even a correct algorithm or way to calculate angle from GCC information will help! Thanks!
  11 件のコメント
Walter Roberson
Walter Roberson 2018 年 1 月 19 日
audiorecorder() grabs all of the channels of the audio device by default. The different channels appear as different columns of the returned data.
Ali Soban
Ali Soban 2018 年 1 月 19 日
But are you sure that it would be a synchronous recording this way ?

サインインしてコメントする。

回答 (1 件)

Gabriele Bunkheila
Gabriele Bunkheila 2018 年 1 月 19 日
Hi Ali,
A number of things could be happeninig here - low-end or built-in laptop sound cards most often have mono mic or line inputs (despite the drivers possibly suggesting otherwise). Are your acquired signals exactly identical or simply well-correlated in time? On the other hand, your cable may be a single stereo to 2x stereo instead of a stereo splitter. I suggest you check all those possible issues in isolation.
Regards,
Gabriele.
  1 件のコメント
Ali Soban
Ali Soban 2018 年 1 月 19 日
Hi Gabriele ,
Kindly see the stereo cable image attachment in my above comment so that you possibly be getting a fair estimate to where I'm actually stuck now. No the signals are not purely identical but they maximum correlation coefficient occurs at zero phase shift i.e.
[c lag] = xcorr(L,R)
[maxC I] = max(c)
lag = lag(I)
This lag = 0 always. I don't know the reason since the signals aren't purely identical!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMeasurements and Spatial Audio についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by