I assume a capacitor would be the solution, but it is 30 years since I soldered amplifiers and calculated circuits, and I don't know much about LEDs, so I would greatly appreciate some advice on how best to solve it. I haven't actually measured, but I assume the input voltage is about 12V AC.