arecord to mp3 on schedule

From: M Stromberg (mike_at_strombergtech.com)
Date: 09/30/04


Date: 30 Sep 2004 11:02:58 -0700

I am trying to setup alsa arecord to record from several different
sound cards using a cron job. I was able to make it work ecasound but
i would really like to use the alsa tools. I had no problem setting
it up to create a wav file but piping through lame i cannot get to
work.

arecord -f dat -d 20 -D hw:0,0 test.wav

that got me a 20 second wav file.

can someone give me an example of a lame pipe that would work?

Thanks in advance.