1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/arecord.md
Caspar b93aed16db
arecord, convert: edit pages (#12644)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-05-20 14:52:24 +02:00

28 lines
838 B
Markdown

# arecord
> Sound recorder for ALSA soundcard driver.
> More information: <https://manned.org/arecord>.
- 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`
- 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`