I love my dogs,but they bark at all strangers and even some family members.The only one they don't bark at is me

I've tried just about everything,I don't want them to totally stop barking,but I do want them to only bark when it's appropriate.Like if I'm being attacked or something.Can any one help?
