An ultrasonic device emits a high-pitched sound that is unpleasant to dogs and can help deter excessive barking. These devices can be handheld or mounted in your home or yard.