it’s for.
Here’s the practical reason for the speaker. Behind a closed hotel door, a hallway alarm can be muffled. Hotels run announcements and alarm audio into the rooms themselves so guests actually hear what’s happening. In many buildings that’s part of a voice evacuation and emergency communication setup, designed to give clear spoken instructions rather than just a horn. A ceiling speaker is how that voice reaches you while you’re half asleep with the deadbolt thrown.
So two separate jobs, two separate devices. The detector watches for smoke. The