You can try using a "bark collar" or a "shock collar" to control a constantly barking dog. These device delivers a small shock to the dog when it barks and the idea is that the dog will relate a minor pain with his barking, becoming surprised and sooner or later stops.
Hope it helps!!