Do smoke detectors have little speakers inside them? If yes, would it be possible to hack them to play a little jingle?

https://piefed.ca/c/nostupidquestions/p/544264/do-smoke-detectors-have-little-speakers-inside-them-if-yes-would-it-be-possible-to-hack-the

Do smoke detectors have little speakers inside them? If yes, would it be possible to hack them to play a little jingle?

I'm asking not specifically about smoke detectors but any device that beeps but does not make any other, non-beeping sounds. Examples include micro…

Usually it’s not exactly a speaker, but it does involve a controlled moving diaphragm. In a piezoelectric buzzer, a current applied to the diaphragm causes it to oscillate, and the size and shape of the diaphragm determines the tone AFAIK.

It may be theoretically possible to engineer such a device into a rudimentary speaker. I mean, people have done it with Tesla coils and player pianos, so hey, anything is possible?

What is a Piezo Buzzer: Benefits, How to Use it & How it Works:News::Fullhorn Electronics Company Limited

A piezo buzzer, a compact electronic audio device, is used in alarms, doorbells, musical instruments, toys, by creating audible alerts and notifications.

Interesting. I’ve never heard of a piezoelectric buzzer before. This is the answer I was looking for. Thanks!