How to record speakers and mic together

In order to record the sound going out of the speakers and the sound coming in from the microphone, the following settings have to be done on Kmix:

  • Output:Master and PCM enabled (green) and high
  • Input: Mic enabled (green = unmute) and high + Capture enabled (record)
  • Switches: Mix enabled

Then, use the following command to record:

$ arecord -f cd -t raw | oggenc – -r -o out.ogg

and the following command to play:

$ ogg123 out.ogg

Advertisements