Training the dog to stop barking on command can be accomplished with lure-reward techniques, disruption techniques, or head halter and leash training. Training a dog to be quiet on command allows it to continue to bark at stimuli but stop at your request. Rewards are then given for quiet behavior. At each subsequent training session the dog should remain quiet a little longer before the reward is given. Teaching a dog to stop all barking in the presence of the stimulus is much more difficult.
Punishment is generally ineffective in the control and correction of barking problems.
Excessive punishment can increase anxiety and further aggravate the problem, while insufficient punishment merely rewards the behavior by providing attention. For punishment to be effective, barking must be disrupted at the instant it begins, using a technique or device that effectively interrupts the barking. When you are not present as barking begins, the only solution might be to use bark-activated products. But unless the dog is also trained to be quiet in the presence of the stimulus, devices will only disrupt, not eliminate barking habits. Practical Products There are several products that may successfully interrupt barking.