2020-09-09 07:56:16 +08:00
|
|
|
# arecord
|
|
|
|
|
|
|
|
> Sound recorder for ALSA soundcard driver.
|
2021-04-16 16:42:14 +02:00
|
|
|
> More information: <https://manned.org/arecord>.
|
2020-09-09 07:56:16 +08:00
|
|
|
|
2025-03-09 14:03:08 +02:00
|
|
|
- Record a snippet in "CD" quality (finish with `<Ctrl c>` when done):
|
2020-09-09 07:56:16 +08:00
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{path/to/file.wav}}`
|
2020-09-09 07:56:16 +08:00
|
|
|
|
|
|
|
- Record a snippet in "CD" quality, with a fixed duration of 10 seconds:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{[-d|--duration]}} {{10}} {{path/to/file.wav}}`
|
2020-09-09 07:56:16 +08:00
|
|
|
|
2025-03-09 14:03:08 +02:00
|
|
|
- Record a snippet and save it as an MP3 (finish with `<Ctrl c>` when done):
|
2020-09-09 07:56:16 +08:00
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{[-t|--file-type]}} raw | lame -r - {{path/to/file.mp3}}`
|
2020-10-13 02:28:39 +05:00
|
|
|
|
|
|
|
- List all sound cards and digital audio devices:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`arecord {{[-l|--list-devices]}}`
|
2020-10-13 02:28:39 +05:00
|
|
|
|
2025-03-09 14:03:08 +02:00
|
|
|
- Allow interactive interface (e.g. use `<Space>` or `<Enter>` to play or pause):
|
2020-10-13 02:28:39 +05:00
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`arecord {{[-i|--interactive]}}`
|
2024-05-20 14:52:24 +02:00
|
|
|
|
|
|
|
- Test your microphone by recording a 5 second sample and playing it back:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`arecord {{[-d|--duration]}} 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav`
|