How to record from two different external microphones using Audio System Toolbox for simultaneous recording ?

조회 수: 7 (최근 30일)
Hi everyone! I'm working on audio localization project in which I have to compute the lags between two audio signals. Im using audioDeviceRecorder from Audio System Toolbox but do not know how to achieve better results since 02 external USB microphones are giving processing time delays which are unwanted in such a sensitive environment! Please help if there's an efficient way of doing this! Thank you!

채택된 답변

Gabriele Bunkheila
Gabriele Bunkheila 2018년 1월 17일
Hi Ali,
Thank you for posting this. My recommendations are going to be closely related to the answer I gave to another recent question of yours.
You won't be able to use two separate USB microphone to estimate inter-microphone delays as your OS will most likely inject unpredictable latencies, different at every acquisition. Instead, you should get your hands on a multichannel audio interface, preferrably with ASIO drivers - anything from a simple 2-channel consumer sound card to a high-end multichannel interface.
That type of configuration will ensure your two separate channels are acquired synchronously. When using audioDeviceReader, make sure that the value of SamplesPerFrame is the same as the value you set in the Buffer Size/Length in the ASIO configuration panel of your sound card. That panel is now also reachable directly from MATLAB via the function asiosettings .
Ragards,
Gabriele.
  댓글 수: 2
Ali Soban
Ali Soban 2018년 1월 17일
Hi Gabriele! Are you referring to something like I have attached over here ? Kindly see the attachment. Its a DUAL MIC input USB sound card. Is it going to work in your opinion?
Ali Soban
Ali Soban 2018년 1월 17일
Or else can u recommend me some good sound cards for Multi-channel Audio Interfacing ? It'll be a great help indeed! Regards, Ali

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by