There was an interesting study recenty showing that chicks (it was some wild bird species) who hear alarm calls from the mom or flock mates while in their shells are then quicker to hide when they hear alarm calls after they hatch. So birds are definitely listening from inside the egg, and learning, too!