If your pet's barking is so disturbing and has to be controlled the best way is get yourself some books on how to stop barking dogs which gives you lot of insights into dog psychology and tips on how to control your dog from barking constantly.
Though there are many reasons for dogs barking, checkout if your dog is barking out of boredom for which you can change its routine and allow it to have more physical activity that may help him come out of the habit. The books usually concentrate on training the dog from the early years to obey commands and behave well that doesn't allow to inappropriate barking in night. See if something like a kitten or bird from the window's sight is triggering its barking which can be put to a stop by shutting down the window. It is often by observing one tends to know the reason for their pet's barking to take preventive measures. However if your dog doesn't listen to your commands, the books on how to stop barking dogs do suggest some dog collars that are effective yet harmless to your pet.
Once you start implementing the ideas from the book we are sure you shall find peace from your dogs barking sounds.