The ones I worry about are the ones that don't bark. They're the ones who want to get close enough to bite and might get tangled up in the bike.

The barkers usually respond when I yell SIT! or NO! The non-barkers are not as common. I have successfully fended a few off with a well-aimed squirt from a water bottle; however, I have been cycling for decades and am very comfortable with my bike handling skills. Another person might not be comfortable doing that.

I've wondered if an air horn would work.