What is the primary function of the larynx in the human body?
A) To filter and humidify the air entering the lungs
B) To produce sound and facilitate speech by vibrating the vocal cords
C) To regulate the body's temperature through sweating
D) To absorb nutrients from digested food