I am just about to teach my dog to do just that, to bark for a treat so that I can get him to bark on command, it is actually a great way for a dog relieve stress and can be used to help PTSD in dogs (my dog does not have that, but I want him to speak on command). Once a dog can bark on command, you can then teach quiet.