How to plot graph from microphone's input?

(loundiness, etc.)

Please help!