Make sure they have enough toys and bones. My dog also barks more if she hasn’t gotten her energy out yet, plenty of yard/park time and regularly walks should help. If she won’t stop, make sure you tell her “no” and scold her when she barks, it will take a while but she’ll figure it out. It also helps to randomly give her treats when she’s not barking. It’s this idea that even if she doesn’t know she’s being good, it’ll reinforce that good behavior rather than just punish the bad behavior. Taps to the nose also help, if you have to you can restrain her to a cage or particular room to calm down. My dog use to get pretty rowdy when my neighbor’s dog got home so I’d put her in her cage with a blanket coming the top and sides of it. This would give her a pretty dark, semi-quiet area to relax. Obviously don’t leave her in there all the time, but it’s really helpful if she’s getting to be too much. I also leave the front gate part of her cage uncovered so she can see me and have light.