Barking is a natural way for dogs to express themselves – it is a part of their language. Nobody would ever dream about “training away” or “punishing away” a cat that meows or a horse that whinnies. But many people believe that dogs should not be allowed to bark or growl.
First and foremost you must understand and accept that dogs actually have a language, and that a part of that language is to make sounds. It is as simple as that. But given that, it must be admitted that vocal expressions in dogs can have formidable dimensions, and can be a problem for their surroundings including the people nearby.
The key to finding a solution to this is to learn to recognize the point at which barking has become exaggerated because of a need for attention, stress, or has developed into “yelling” because nobody listened when the dog tried to communicate in a more normal way. It can happen in an isolated situation or it can be chronic. But in either case, when there is stress involved, it often comes out through the mouth — not unlike people!
No matter what the cause is, you can do something about it. You have to find the reason for the problem, what kind of barking you are confronted with, and understand the circumstances around it. Then you can identify ways to minimize the barking, remove whatever caused it, and in that way, get control of the problem.