1V to 5V transistor amplifier for arduino digital inputs
This will turn on the transistor when the audio voltage exceeds approx. 0.7V, this will pull the IO pin low. It will only trigger on the +ve going part of the audio signal.







simulate this circuit &ndash; Schematic created using CircuitLab