I had good success with a bark control collar, but it gave a squirt of citronella instead of the electric shock.

It was quite funny to see the dog nearly jump sideways when a squirt shot past his nose.

So there are other options for people who object to electric shock treatment.

Not sure how it would go inside though.