Find the pitch of your voice with an FFT
Record your voice on a laptop, compute its spectrum in Python, and find the fundamental frequency, then turn it into a simple live tuner.
What this proves to recruiters
- You understand sampling and the FFT in practice.
- You can read a spectrum.
- You write clear analysis code.
Skills you will use
- Sampling
- FFT
- Windowing
- NumPy
What you need
Nothing to buy: this project only needs a computer and the free software below.
Free software
- Python with NumPy, SciPy and Matplotlib
- Audacity to record
Steps
- Record yourself saying “aaah” for 2 seconds at 44.1 kHz.
- Take a 4,096-sample chunk and apply a Hann window.
- Compute the FFT and plot the magnitude up to 2 kHz.
- Find the fundamental (the lowest strong peak) and its harmonics at 2×, 3× and so on.
- Compare men’s and women’s voices, or speaking and singing.
- Run it live on the microphone and print the nearest musical note.
Make it stand out
- Use autocorrelation and compare it with the FFT method.
- Plot a spectrogram of a sentence.
Put it on your resume
Built a real-time pitch detector in Python using windowed FFTs; identified fundamental frequency and harmonics from live audio.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 1, “Signals and systems, done well”, of the Signal processing and edge AI roadmap. See also how freshers get into embedded AI and DSP engineer jobs.