The stimulus might be a loud noise, an ultrasonic noise, a spray of citronella mist or a brief electric shock.
The collars that deliver noise are ineffective with most dogs.
Anti-bark collars are punishment devices and are not recommended as a first choice for dealing with a barking problem.