This reminds me of approximately 30 years ago. While dabbling in ham radio, I learned that speakers can work in reverse as microphones, and vice versa.
LEDs can also be used to measure light btw.
A surprising amount of circuits work like this. Generators and motors are basically the same as well, and spinning a fan by hand will induce current into the wire. I assume most circuits are designed to properly handle that happening, but I still worry when blowing the dust out of my PC and will manually prevent the fans from spinning when I blow compressed air at them.
This intuition isn't true anymore since today many speakers will have "smart" in them and MEMS microphone ICs are a thing.