Forrest logo
back to the arecord tool

arecord:tldr:f78c4

arecord: Record a snippet in "CD" quality (finish with Ctrl-C when done).
$ arecord -vv --format=cd ${filename-wav}
try on your machine

The command "arecord" is a Linux command-line tool used for recording audio from various sources. Here's an explanation of each component of the given command:

  1. "arecord": This is the command itself, used to invoke the "arecord" tool.

  2. "-vv": This is an option used for verbose output. It provides additional debugging information, making the command's output more detailed and informative.

  3. "--format=cd": This option specifies the audio format to be used, which is CD quality audio. CD audio typically has a sample rate of 44.1 kHz and a bit depth of 16-bit.

  4. "${filename-wav}": This is an argument passed to the command, specifying the name of the output file. The "${filename-wav}" is a placeholder that should be replaced with the desired filename ending with ".wav". For example, if you want to name the file "audio.wav", you would replace "${filename-wav}" with "audio.wav".

Putting it all together, the command will use the arecord tool to record audio with verbose output, using the CD audio format, and save it to a file with the specified name and ".wav" extension.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the arecord tool