Record microphone input and output to mp3 file

arecord -q -f cd -r 44100 -c2 -t raw | lame -S -x -h -b 128 - `date +%Y%m%d%H%M`.mp3

Record audio notes or meetings requires arecord and lame run mp3gain on the resulting file to increase the volume / quality ctrl-c to stop recording

you can also pipe sox into lame as well for the same effect
sox -t ossdsp -2 -s -r 44100 -c 2 /dev/dsp -t wav -
pulseaudio users might want to do this
padsp sox -t ossdsp -2 -s -r 44100 -c 2 /dev/dsp -t wav -

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.