Some people use water guns.
I also know that some people did not have good results. It depends on the yorkie. Some are stronger spirited than others and it will stop them from barking without breaking their spirits. The yorkies with a more submissive personality are the one's you have to be careful not to break their spirit using these things.