How to save sound from microphone to wav or mp3?

Hi people,

By these days im trying to advance in the creation of an installation for public spaces bases on the natural interaction between people in the space.

I need to save the sound of one person in the space at morning like 8am.mp3 or similar, but i dont know how to do that.

Any ideas in this way ?

Thank you very much in advance.