I used to have a really barky dog, and there was nothing we could do about it, so we eventually bought one of those shock collars that reacts to loud noise.
I had a friend come over and say “What’s this? Shock collar?” He picked it up and put it across his own neck, and goes “woof. WOOOF! OOooowww, that fucking hurts.” and put it back down.
It had never occurred to me to test it on myself, and yet it was a thing he did without even pausing a second.
It didn’t work. That dog loved barking more than it disliked pain.