2020-09-09 00:56:16 +01:00
|
|
|
# arecord
|
|
|
|
|
|
|
|
> Sound recorder for ALSA soundcard driver.
|
2021-04-16 15:42:14 +01:00
|
|
|
> More information: <https://manned.org/arecord>.
|
2020-09-09 00:56:16 +01:00
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Record a snippet and save it as an MP3 (finish with Ctrl-C when done):
|
2020-09-09 00:56:16 +01:00
|
|
|
|
|
|
|
`arecord -vv --format=cd --file-type raw | lame -r - {{path/to/file.mp3}}`
|
2020-10-12 22:28:39 +01:00
|
|
|
|
|
|
|
- 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`
|
2024-05-20 13:52:24 +01:00
|
|
|
|
|
|
|
- Test your microphone by recording a 5 second sample and playing it back:
|
|
|
|
|
|
|
|
`arecord -d 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav`
|