How the test works
The signal chain, the maths and the limits, so you know exactly what your number means.
VoiceHzTest estimates your fundamental frequency (F0) about 60 times per second with the YIN algorithm, keeps only clearly voiced frames, removes octave errors and reports the median of what’s left. Everything runs in your browser. No audio is stored or uploaded.
1. Capturing the signal
When you press record, the browser opens your microphone with echo cancellation, noise suppression and automatic gain control switched off. Those phone-call filters can bend pitch. The audio passes through a 50 Hz high-pass filter (to remove rumble and handling noise) and a low-pass filter (to prevent aliasing), then into a short rolling buffer of about 85 milliseconds. Older audio is overwritten continuously. Nothing is ever recorded to a file.
2. Finding the pitch (YIN)
Each animation frame, the most recent 40 ms window is down-sampled to about 16 kHz and analysed with YIN (de Cheveigné & Kawahara, 2002). YIN compares the waveform with delayed copies of itself, normalises the difference, and picks the first delay where the voice clearly repeats. That delay is one vocal-fold cycle, and its inverse is F0. Parabolic interpolation refines the estimate to a fraction of a sample, giving sub-Hz precision on clean voices.
3. Keeping only real voice
- Adaptive noise gate: the test tracks your room’s noise floor and ignores frames that aren’t clearly louder than it.
- Periodicity check: frames that don’t repeat clearly (breaths, “s” and “f” sounds, clicks) are discarded.
- Range limits: the 15-second test accepts 60–500 Hz, the range of human speaking voices.
- Octave-error removal: after recording, any frame more than 10 semitones from your first-pass median is dropped. These are usually pitch-doubling or halving errors.
4. Why the median
Speech pitch is skewed. Questions, emphasis and laughter produce short high peaks. The median isn’t pulled around by those peaks, so it’s the most repeatable single number. We also show the mean, the 10th–90th percentile range and the variation (standard deviation in semitones around your median), which describes how melodic or flat your intonation is.
5. Voice bands and comparisons
Your median is placed on seven speaking bands (Basso profondo under 82 Hz, Bass 82–98, Baritone 98–123, Tenor 123–165, Alto 165–196, Mezzo-soprano 196–233, Soprano 233+). The “deeper than X%” figure comes from log-normal models of adult reading voices: men centred on 117 Hz with a spread of 2.4 semitones, and women centred on 212 Hz with a spread of 2 semitones. These are fitted to Fitch & Holbrook (1970) and similar datasets. They are estimates, not a census.
Accuracy and limits
- Algorithm accuracy: on a clean, sustained voice, YIN with interpolation is typically within ±1 Hz.
- Your voice varies more than the maths: time of day, energy, volume and the text you read can shift your median by 5–15 Hz. Run the test two or three times.
- Vocal fry is irregular and may be dropped or read very low. Whispering has no pitch and will not register.
- Bluetooth headsets in call mode cut bandwidth. Built-in microphones usually work better.
- This is an educational and entertainment tool, not a medical or clinical assessment. If you have concerns about your voice, see an ENT doctor or a speech-language pathologist.
Privacy by design
The analysis is pure JavaScript and Web Audio running on your device. There is no audio upload endpoint at all. Your last 12 results (numbers only) are saved in your browser’s local storage so you can compare attempts, and you can clear them at any time. See the privacy policy.
References
- de Cheveigné, A., & Kawahara, H. (2002). YIN, a fundamental frequency estimator for speech and music. Journal of the Acoustical Society of America, 111(4), 1917–1930.
- Fitch, J. L., & Holbrook, A. (1970). Modal vocal fundamental frequency of young adults. Archives of Otolaryngology, 92(4), 379–382.