#! /bin/zsh # # this file: # https://dataswamp.org/~incal/.zsh/audio-record record () { local nom=${1:-snd} local dst=${nom}.mp3 # cd is '-f S16_LE -c2 -r44100' arecord -f cd -t raw | lame -r - $dst }