Devices in which sound is produced by vibrating a diaphragm or analogous element