This project has moved. For the latest updates, please go here.

TDOA, capture from multiple microphones at the same time

Oct 3, 2010 at 10:21 AM

Hi,

I'm trying to use to microphones to locate the position of the source by using the TDOA algorithm (Time-Difference-Of-Arrival), basically I compare the two captured buffers and find out the delay between each other in "samples" and then calculate the distance based on the sample rate.

Is it possible to capture the audio at exactly the same time? the onDataAvailable approach is pretty handy, but I guess it doesn't capture the audio on two devices at exactly the same time.

Coordinator
Oct 12, 2010 at 6:20 PM

the easiest way is to use a stereo soundcard and attach two microphones - one to the left channel and one to the right. That way your audio should be recorded in perfect synchronization. For more microphones, you proabably need to get a pro soundcard with multiple inputs, and NAudio may not be your best choice since ASIO support is very rudimentary.

Mark