You need to identify the reason your dog is barking. Does he want something like a toy or is he hungry? If you have given him things in the past because he barks don't continue doing it because you are rewarding bad behavior. Wait for him to stop first then give it, that way he'll know that in order to get it he must not bark for it. If he barks at people or other animals some experts advise that your dog may need more socialization so walking him for at least 30 minutes everyday is a good step to take. I walk my dog twice a day once for 45 minutes in the morning and once in the afternoon.