Record multiple microphones simultaneously

조회 수: 5 (최근 30일)
Timothy
Timothy 2012년 11월 19일
댓글: joe boby soegiarto 2015년 6월 24일
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
Timothy
Timothy 2012년 11월 28일
편집: Timothy 2012년 11월 28일
I found out why Matlab wasn't recording with one of them, and it was because there was a faulty USB port that it was plugged in to-I tried plugging a mouse into it and that didn't work either. When I plugged it into a different USB, I got this for the audiodevinfo, and it seems to work fine:
>> audiodevinfo(1,1)
ans =
Microphone (1- USB Audio Device) (Windows DirectSound)
>> audiodevinfo(1,2)
ans =
Microphone (2- USB Audio Device) (Windows DirectSound)
joe boby soegiarto
joe boby soegiarto 2015년 6월 24일
Hi i want to ask guys, can you record using 2 differenti soundcard simultaneously?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by