One of the most important things is to not yell or say his name when he barks. His name should only be said with a positive association when praising or calling him to you. Yelling just makes him think you're barking with him.
Try and remove the temptations to bark. Since he barks at people walking by outside, close the blinds. if he barks at people while he is outside, bring him inside.
You can also try and ignore his barking until he stops. This means don't give him any attention or eye contact and don't touch him, just don't even act like he is doing it. If you give him attention, he feels rewarded for barking. Once he finally stops barking, give him a treat. Even if he only stops to take a breath or something, if he is quiet - he gets a treat. Once he catches on that being quiet gets him a treat, try to lengthen the time he is quiet and keep rewarding him for each longer amount of time he is quiet (5 seconds... 10 seconds... 30 seconds... etc).
In addition to that step, you can try adding a command into the mix, such as "Quiet", "No Bark", "Zip It"... whatever you wanna use. Attempt to teach him this command in a calm environment so once he encounters a noise that makes him bark/get excited, then he will be more likely to listen to you.
Another tip is to distract him. If he is barking, ask him to do another command, such as "sit", "lay", "roll over:". Then maybe his mind won't be on the noise and rather on the command that you want him to do. Eventually maybe he would just automatically lay down or sit when he hears a noise rather than bark.
Finally, ensure he is getting ample exercise and playtime. Dogs that bark a lot tend to just have a lot of pent up energy. If he is barking from nerves, try and reassure him that there is nothing to worry about.
It is important to be consistant and try to do the training as much as possible every day until he stops his barking. This includes anyone living in the house with you. It won't help if you try and train him to stop, but your mom or someone else just ignores the barking and lets it happen.
Always have treats or something that your dog likes. Whenever he is hears a noise and is about to bark give him a treat. Then for practice purposely make the sound and have give him a treat or toy before he even gets a chance to bark. This creates a link between that if he hears this sound and doesn't bark it means that he will get something he likes. It takes a lot of practice but make sure you keep a positive attitude towards doing so. If he hears the sound and starts barking, don't reward him for it. If you do, it will make him think that whenever I bark I get what I want. Hope it works for you.
Right on the nose. I'm gonna add don't reward barking at all, not even by saying or yelling don't bark. That's reinforcing the negative behavior even when the reinfoment is also negative.
great idea