Try not to use your dog’s name in negative ways too often, even if you are a bit angry. If that happens once too many times your dog may not be that keen to listen to you the next time. They may be scared of the consequences.
If you use their name mostly in positive ways, such as during play and praise, which time should always be made for, the sound of it is more likely to get your dog’s positive attention and interest in the future.
You’ll be training your dog and yourself!