1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 16:15:24 +02:00
tldr/pages/linux/arecord.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

1,008 B

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|--verbose --verbose]}} {{[-f|--format]}} cd {{path/to/file.wav}}

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

arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{[-d|--duration]}} {{10}} {{path/to/file.wav}}

  • Record a snippet and save it as an MP3 (finish with <Ctrl c> when done):

arecord {{[-vv|--verbose --verbose]}} {{[-f|--format]}} cd {{[-t|--file-type]}} raw | lame -r - {{path/to/file.mp3}}

  • List all sound cards and digital audio devices:

arecord {{[-l|--list-devices]}}

  • Allow interactive interface (e.g. use <Space> or <Enter> to play or pause):

arecord {{[-i|--interactive]}}

  • Test your microphone by recording a 5 second sample and playing it back:

arecord {{[-d|--duration]}} 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wav