According to the teachings of the Arizal, Hashem puts into the mouth of the parent the specific name that corresponds to the place in the divine realm from which the child's soul was carved.
https://www.torahrecordings.com/rebbe/igroskodesh/012/006/4170