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