How to chose input with sox + coreaudio with the same name

Alexandre Grais <[email protected]> Fri, 2 Jul 2021 10:29:42 +0200
Newsgroups gmane.comp.audio.sox
Message-ID <CAKdBnMK8PUwsZAP7CLSNMPdQUYDF=SbboRDS224GFno=sF=zBw@mail.gmail.com>
Hello team !

I have two audio sound card on my Mac which have exactly the same names:
[AVFoundation indev @ 0x7fd3fca04dc0] AVFoundation audio devices:
[AVFoundation indev @ 0x7fd3fca04dc0] [0] MacBook Pro Microphone
[AVFoundation indev @ 0x7fd3fca04dc0] [1] Hue Sync Audio
[AVFoundation indev @ 0x7fd3fca04dc0] [2] USB Audio Device
[AVFoundation indev @ 0x7fd3fca04dc0] [3] USB Audio Device

I can record on one of those using the following command:
sox -t coreaudio "USB Audio Device" toto.wav -V6

But I have no idea how to tell sox to go and record on the second input
which has the same name.

Any suggestions?


*Alexandre Grais - kapptivate*
*Website: http://www.kapptivate.com <http://www.kapptivate.com>*
*Email: [email protected] <[email protected]>*
*Phone: +33 7 89 80 03 56*
*Skype: alexandre.grais*

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users