I am trying to record 2 different microphones via Sox for one of my applications. I am currently just testing on a Mac terminal to record audio. However, I can only get sound through one microphone.
The sox command I use is:
sox -b 32 -e unsigned-integer -r 96k -c 2 -d --clobber --buffer $((96000*2*10)) /tmp/soxrecording.wav trim 0 10
Which gives a good wav file.
I have two different USB microphones that display as 2-channel I / p each in Sound / System Preferences. I tried making -c 4 a sox command to record from both microphones.
sox -b 32 -e unsigned-integer -r 96k -c 4 -d --clobber --buffer $((96000*2*10)) /tmp/soxrecording.wav trim 0 10
However, I get a warning; sox WARN formats: can't set 4 channels; using 2
And I can only get audio from one USB microphone. I tried to mess around and understand what was wrong, but any tips would be really helpful.
source share