
Our breed doesn't need teaching to bark, its the quiet that can be a challenge, lol. If barking is a problem the above advice is sound, but if the dog chooses to stay out of reach (so it can continue to bark!) I have found that a well aimed and timed jet of water sprayed ( using a plant or other spray that can be adjusted to a good jet, not a sprinkle) in the face followed by the command works wonders. Even dogs that like water find the squirt a shock, and will momnetarily stop what they are doing, so you can get the command and PRAISE in!
Goes something like this Dog; "Bark barki bark" Owner; "Quiet", if barking continues quicj squirt, when dog looks at you say "Good dog quiet" and call over for a pat. I think the principle is similar to the pebbles in tin can, thrown chain, rattling disks etc, working on distraction. also it is mildly unpleasant, so for a stubborn dog works better than simple distraction, but the beauty is you can't inadvertently hurt them, and also in a heated situation the dog cannot physically resist you, as when holding the muzzle, which can turn into a contest of strength, and if the dog wins then the werong signals regarding who is incharge are given.