Record multiple microphones simultaneously
Mostra commenti meno recenti
I have read several topics on this issue, but the ones I have found differed from mine slightly.
I wish to record 2 sound recordings at once. I have both mic's plugged in. I set up two audiorecorder functions like this:
rec1=audiorecorder(44100,8,1,1);
rec2=audiorecorder(44100,8,1,2);
record(rec1,3);
record(rec2,3);
Only rec1 recorded. I can see this by plotting the audiodata for both recordings. Is this problem due to MatLab not recognizing the 2nd microphone? Or is there something inherently wrong with my code?
Also, would there be an easier way to do multiple recordings? I've read something about Data Acquisition Toolbox, but I don't have it and have never used it.
Thanks for your help.
9 Commenti
Walter Roberson
il 19 Nov 2012
Is audiodevinfo() showing the devices as being connected on those ID's?
If you exchange the mic's, does the problem stay with the mic or with the ID ?
Timothy
il 26 Nov 2012
Timothy
il 26 Nov 2012
Modificato: Walter Roberson
il 26 Nov 2012
Walter Roberson
il 26 Nov 2012
In a session, before using audiorecorder(), please see what
audiodevinfo(0,1)
audiodevinfo(0,2)
return
I am concerned about the possibility that audiorecorder() sets up control structures but does not test whether the device is present; knowing that audiodevinfo() believes the devices to be at 1 and 2 would be helpful.
Also, does the problem stay with the microphone or with the device number if you exchange the microphones ?
Timothy
il 26 Nov 2012
Timothy
il 26 Nov 2012
Walter Roberson
il 26 Nov 2012
Ah, I misread about input vs output. 1 instead of 0 it is.
Your system has 5 logical audio input devices. The first of them is a USB microphone. The second of them is an stereo jack style on your laptop. I do not have enough information at present to know where the other 3 logical input devices are.
Which microphone inputs do you think you are using? For example if you are using two USB microphones, then you need to find the device ID that corresponds to that USB microphone.
joe boby soegiarto
il 24 Giu 2015
Hi i want to ask guys, can you record using 2 differenti soundcard simultaneously?
Risposte (0)
Categorie
Scopri di più su Audio and Video Data in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!