Sample microphone code.