Ok, thanks for the answers. I tried lame 3.20 (ELF) from Aminet. After some trouble with wrong samplingrates and bit resolutions it worked. It was fast enough for my application.
But I still ended with lot of trouble...

I want ro encode the input from the soundcard directly (mounted AHI-device) and put the output into a pipe. (for reading by another program)
So I did something like this:
lame -b 16 -f audio:TYPE/AIFF/B/16/F/16000/UNIT/3 pipe:test.mp3
and in another shell window
myNextProgram pipe:test.mp3
which sould open pipe:test.mp3 for reading and further processing.
But that did not work. I guess lame had problems with reading the AHI-device...
Any suggestions what could be wrong here?
And another question: Is it possible on the Amiga to do the piping more unix-like? e.g. with some "|" instead of pipe:?
kind regards, selco