Recording using more than two microphones simultaneously

2 visualizaciones (últimos 30 días)
JiHun Baek
JiHun Baek el 20 de Jul. de 2013
Comentada: DavidOviedo el 11 de Oct. de 2013
What I want to do is sound source localization, by recording the sound source using a number of microphones and finding out the time delay of each data. Doing this, synchronization of recording is very important. I tried to record simultaneously using the code below:
recObj1 = audiorecorder(44100, 16, 1,1);
recObj2 = audiorecorder(44100, 16, 1,2);
record(recObj1,5)
record(recObj2,5)
i=0;
while i<350000
i=i+1
end
The reason I wrote the while construction is because when I don't give that spare time, the system returns error.(I don't know why) But still the result is not what it actually should be. I mean the recording is not simultaneously going. Random time delay occurs.
I am using two USB sound card to get two input microphones. Is this fact causing the problem? Or, I wonder if matlab is naturally not suitable for simultaneeous recording using more than two microphones.
Anybody knows how to record using two microphones simultaneously?
  1 comentario
DavidOviedo
DavidOviedo el 11 de Oct. de 2013
I'm ussing the same device with every microphone. It's a MOTU with 8 channels.
My code uses a pause instead of while. I have not problems with it.
In my experience, start orders are almost simultaneos. Instead, stop order are markedly delayed.
I can not be of more help, but I hoope someone knows answer.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by