A microphone converts sound waves into time-varying electrical signals.