I am trying to capture sound card output and encode it in Vorbis ogg format using the following command:
arecord -f cd -t raw | oggenc - -r -o file.ogg
However, the computer's microphone input is recorded rather than the sound card output.
The output of the command arecord -l is
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CONEXANT Analog [CONEXANT Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
The output of the command arecord -L is contained in this pastebin entry.
The arecord man page indicates that the input device can be selected using the -D flag, but gives no syntactical examples.
I would like to know how to change the input for arecord from the microphone to the sound card. I am not interested in GUI-based alternatives such as Audacity. Thanks.
Edit: I am running Debian 7.0 (stable) with arecord version 1.0.25, vorbis-tools version 1.4.0, and ALSA driver version 1.0.24.




alsamixer. If I select the loopback card withinalsamixer(F6 key to select sound card), I receive the messageThis sound device does not have any controls. If I exit the mixer and return, I find that the sound card is restored from loopback to the default card. Attempting to suspend (ctrl-z) and background (bg) thealsamixerprocess after selectingloopbackdoes not enable successful recording of audio via thearecordcommand. – user001 May 20 '13 at 4:15alsamixerdoes not affect the rest of the system; it just changes which controls are shown. What are the recording selection controls of the Conexant device? – CL. May 20 '13 at 6:45Master) and one capture control (Capture) withinalsamixer. The capture can be toggled on and off with the spacebar withinalsamixerand it is on by default. Please let me know if this is not what you intended. Thanks. – user001 May 20 '13 at 9:51