Code for reading audio from microphone