The most well-known example is the Apple Watch's Water Lock feature. When activated, the watch emits a specific sound frequency that expels water from the speaker cavity. This not only helps restore sound quality but also protects internal circuitry from prolonged exposure to moisture.
https://thespeakercleaner.com/