Is there any API or control that lets me record every sound I make using a microphone???

I may also need to record the sounds that my PC is generating, but it's not sure at this moment.

Thanks in advance for your attention.