arecord

Sound recorder for ALSA soundcard driver.

TLDR

Record a snippet in "CD" quality (finish with Ctrl-C when done)

$ arecord -vv --format=cd [path/to/file.wav]
copy

Record a snippet in "CD" quality, with a fixed duration of 10 seconds

$ arecord -vv --format=cd --duration=[10] [path/to/file.wav]
copy

Record a snippet and save it as mp3 (finish with Ctrl-C when done)

$ arecord -vv --format=cd --file-type raw | lame -r - [path/to/file.mp3]
copy

List all sound cards and digital audio devices

$ arecord --list-devices
copy

Allow interactive interface (e.g. use space-bar or enter to play or pause)

$ arecord --interactive
copy

Copied to clipboard
free 100$ digital ocean credit