Seawater in your phone speaker is more serious than normal water. Not only because of moisture, but mainly because of salt and possible residue.
Start with these steps:
• move the phone away from water, sand and salt
• switch it off if there was heavy contact
• gently dab it dry
• hold the speaker facing down
• do not dry it with heat
• do not use sharp objects
• do not charge it right away
• consider carefully rinsing with clean water if there was clear contact with seawater
• let it dry properly
• test the sound later
A speaker cleaning sound can help if there is only moisture around the speaker. But if salt, sand or liquid deeper inside the phone is involved, it may not be enough.
→ General help for water in your phone speaker→ Clean your phone speaker online