How do you teach a dog to speak?

You can say "speak" whenever you hear the dog barking and give it treat and praise. The dog will soon associate the treat and praise to the word and action. Then the dog will speak on command because they know what the sound is telling them to do and they want a treat.