How to read audio from mic directly?

Hello,

How do i read the digital values from the mic in real time so i can do my own processing?

Thanks