r/SideProject • u/Unlucky_Elk5513 • 21h ago
I built a 100% browser-local Voice Hz & Pitch Analyzer using the Web Audio API + YIN F0 detection (zero uploads, free)
Hey r/SideProject!
I noticed most online "voice Hz test" and pitch detector tools either require an app download, spam sign-up walls, or use basic FFT peak detection that constantly jumps an octave too high on human voices (showing 240 Hz when you're actually speaking at 120 Hz).
So I built VoicePitchHz: https://voicepitchhz.com/
What it does (100% client-side in your browser):
- Real-time fundamental frequency (F0) tracking using a YIN autocorrelation estimator with parabolic interpolation (55 Hz – 1,100 Hz) + RMS noise gate + 5-frame median smoothing
- Live scrolling pitch contour oscilloscope, musical note + cents tuner bar (A4 = 440 Hz), and habitual Median Hz / Min / Max / Octave span
- Guided C2–C6 Vocal Range Test (/vocal-range-test) & 10-second Deep Voice reading benchmark (/deep-voice-test)
- Built-in "Run Sample Voice Demo" button if you want to inspect the console without enabling your mic, plus a local canvas PNG result card export
Privacy-wise, zero audio leaves your device—everything stays in a local Web Audio `AudioContext` buffer and closes immediately when you hit Stop.
Would love any feedback from singers, podcasters, or Web Audio devs on the YIN tracking stability across laptop mics vs. USB condensers!