Detecting a tone with a microphone