Most bark too much for my appreciation and for the wrong reasons. It can be irritating to the point of lawsuits. In most municipalities, it is regulated. This behavior seems more than habitual to me sometimes to the point of neurotic. You cannot stop it, train it away, or lesson it by enviromental change.
Shock collars are effective, according to the trainer's ability, or lack therof.
When crossing and breeding resulting progeny for some time, I observed that some animals barked more or less than others. I could control the excessive barking by command but not eliminate it. Other animals were not so quick to bark, nor the barking last any longer than the approach and passing of a jogger or passing people walking their dogs. This consist of holding an intruder at bay from either the sit and bark position or the down and bark position. Of course, That is high tech training and if a dog has to much propentisity to bark, then this is difficult to accomplish.