The pitch of the sound is determined by:
Frequency
Frequency determines the pitch of the sound. More the frequency, more will be the pitch or shrillness of the voice. Females generally have a higher pitch than males and hence produce a sound of higher frequency.