Send a frequency impulse when switch is active
You can use a 555 timer IC to create a tone generator

Here is a page that shows such a circuit but you can find many more from google.



You'll need to connect a pot (or a resistor divider) at the output to lower the output level to line in/mic levels.
The switch can be used in the power supply of the circuit.