arecord
Sound recorder for ALSA soundcard driver
Install arecord
emerge --ask media-sound/alsa-utils
Test your microphone
arecord -f cd | aplay
Record a snippet in "CD" quality (finish with Ctrl-C when done)
arecord -vv --format=cd {{path/to/file.wav}}
Record a snippet in "CD" quality, with a fixed duration of 10 seconds
arecord -vv --format=cd --duration={{10}} {{path/to/file.wav}}
Record a snippet and save it as an MP3 (finish with Ctrl-C when done)
arecord -vv --format=cd --file-type raw | lame -r - {{path/to/file.mp3}}
List all sound cards and digital audio devices
arecord --list-devices
Allow interactive interface (e.g. use space-bar or enter to play or pause)
arecord --interactive
Listen To Microphone And Record
arecord -f cd - | tee output.wav | aplay -
Record To File
arecord -f cd -t wav recording.wav