Try using a spray bottle. Give the command: QUIET! If your dog doesn't stop barking...squirt him/her with the spray bottle. Soon they will learn the command. My stops most of time with just the command of quiet. If not, as soon as I pick up the bottle, they hush!!!