Record multiple microphones simultaneously
显示 更早的评论
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 个评论
Walter Roberson
2012-11-19
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
2012-11-26
Timothy
2012-11-26
编辑:Walter Roberson
2012-11-26
Walter Roberson
2012-11-26
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
2012-11-26
Timothy
2012-11-26
Walter Roberson
2012-11-26
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
2015-6-24
Hi i want to ask guys, can you record using 2 differenti soundcard simultaneously?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!