Detect microphone input and record it if it is present