The Druid retains the knowledge of how to speak but is limited by the Wild Shape’s beast form. It’s up to the DM whether or not animals like parrots or ravens can be allowed to talk while in Wild Shape.