Harmonic
Harmonic

Reputation: 15

Record through two microphones simultaneously

I want to use two different microphones to record together with only one laptop. Because the line-in has two channels, left and right I want to use each one connecting to a microphone, but how to write the MATLAB code?

Upvotes: 0

Views: 549

Answers (2)

user3005651
user3005651

Reputation: 11

also in audiorecorder you can set the device ID for each specific device

recobj1 = audiorecorder(44100,16,2,1)
recobj2 = audiorecorder(44100,16,2,2)

the last argument in the fn is the device ID.

Hope this helps!

Upvotes: 0

Max
Max

Reputation: 2131

The number of input channels can be specified when creating an audiorecorder object - see the Matlab documentation for audiorecorder

Upvotes: 1

Related Questions