Question: how to train dog not to bark at noises?
Answer: If your dog is effectively startled by the sound, he'll stop barking. The instant he does, call him away from the door or window, ask him to sit, and give him a treat. If he stays beside you and remains quiet, continue to give him frequent treats for the next few minutes until whatever triggered his barking is gone.