Remove noise from audio: FIR vs IIR
Add hum and hiss to an audio clip, design an FIR and an IIR filter to remove it, and compare them on quality, delay and computation.
What this proves to recruiters
- You can design filters to a specification.
- You understand the trade-offs between FIR and IIR.
- You measure results, not just listen.
Skills you will use
- Filter design
- FIR and IIR
- SciPy
- Frequency response
What you need
Nothing to buy: this project only needs a computer and the free software below.
Free software
- Python with SciPy
- Audacity
Steps
- Take a clean voice clip and add a 50 Hz hum and some white noise.
- Set a specification: pass 300–3,400 Hz, reject 50 Hz by at least 40 dB.
- Design an FIR band-pass with firwin and an IIR Butterworth with butter.
- Plot both frequency responses and phase responses.
- Filter the clip with each and compare the sound and the signal-to-noise ratio.
- Count multiplications per sample for each and explain which you would put on a microcontroller.
Make it stand out
- Add a notch filter just for 50 Hz.
- Implement the IIR filter in fixed-point C.
Put it on your resume
Designed FIR and IIR filters in SciPy to remove hum and noise from speech; compared attenuation, phase and cost per sample.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 2, “Digital signal processing”, of the Signal processing and edge AI roadmap. See also how freshers get into embedded AI and DSP engineer jobs.