Many speakers are splash proof, but water still causes trouble, especially in the port.
1. Switch it off and don't charge it.
2. Dry the outside and shake water out of the grille gently.
3. Open the port flap and leave it to dry in an airy place for a day, port facing down.
4. Don't use a hair dryer on high heat.
5. Only charge it when the port is completely dry. Charging a wet port causes corrosion.
6. If sound is muffled, play a low bass sound at low volume to push water out of the speaker.
Speakers that aren't water rated and were dropped in water need opening and cleaning like a phone.