Try this, if someone (parents, partner, children) is shouting at you.
Whisper back to them. “I’ll talk to you when you are calm.”
Of course they’ll shout some more and say that they can’t hear you.
Just whisper the same again. Repeat until they stopped shouting and say calmly, now at a normal talking level, “I was saying I’ll talk to you when you’re calm. If you are ready to talk than say what you need to. But you do not need to shout to get the message across. I will probably listen more if you aren’t shouting and screaming at me.”
Works best first time as it shocks the person out of their rage. But also gives you a chance to deal with their anger and not retaliate with more angry words.
The more practice you have with it, the less likely that you will say something you regret later on.
Let me know how it goes.