Pitch of a sound depends upon the frequency of waves.
The greater the frequency, the higher is the pitch and vice versa. It is the pitch of sounds that enable us to distinguish between a sound of man and woman or man and dog, etc. Sound of a woman is shrill due to high pitch. Sound of a dog is grave due to low pitch and low frequency.