Doorbell hack - remote unlock door
If the relay isn't switching, you will likely need to buffer the audio output with a transistor. Just because the audio output is 3.3V doesn't mean that it can supply enough current to switch the relay. If you feed the audio signal into a transistor that switches the relay, and then put your capacitor from the base of the transistor to ground, you should be able to make the relay switch.