The main endocrine function of the testicles is the production of testosterone. This hormone regulates the changes in the body that are associated with sexual maturation, including penis enlargement, growth during puberty, voice aggravation, increased facial and pubic hair, and growth. of strength and muscle. Testosterone works in conjunction with other pituitary hormones for semen production.