Can I create a sensor to notify me when audio is playing?

Could one connect the wires from one channel of a stereo cable (call it the “Right” and “GND” wires) to an ESP32 and create a sensor that triggers when audio is playing? I tried ADC on pin 34 today and it didn’t seem to work.

I guess your audio device is not a supported media_player? Integrations - Home Assistant

Also ESP32 detect when there's a sound output on a jack cable - #2 by Grumpy_Mike - Audio - Arduino Forum

1 Like

Thanks @nickrout. I’ll see if I can get my hands on a .22uF capacitor.