Once your dog learns to consistently bark when you say 'speak,' give him the 'quiet' command to stop barking. Hold another treat in front of his nose and give it to him when he stops barking. With practice, your dog will learn to stop barking at other dogs when you say 'quiet.