Zeroing out particular frequency in audio signal
이전 댓글 표시
Hello, would appreciate a clarification on the following:
I have certain audio recording, several seconds in duration, fs = 44.1kHz
This is actually environmental noise of particular environment, the goal is to figure out main noise frequency component (or 2-3 components), filter them out and reconstruct the signal back for playback without these main noise components.
Just to get the feel of that, I'm trying to achieve that by figuring the highest magnitude peak after FFT (or 2 highest magnitude components), zeroing them out in frequency domain (just setting the appropriate FFT vector components and their conjugate pairs to zero) and then duing IFFT of the result. Then playing back the resulting vector using "sound(signal_vector, Fs)".
I'm checking the spectrum of the original signal and after zeroing out the 2 highest magnitude components - indeed the processed spectrum has those components zeroed out. However, playing the IFFT resulting signal it sounds the same as the original one. Can hear no any effect of the zeroing.
Hence the questions:
- Is the approach of zeroing out in frequency domain and than inverse FFT - wrong one for the goal I'm trying to achieve ? If so, will appreciate explanation
- If this approach should work, what to check to figure out the reason the reproduced audio sounds juts like the original one ?
Thank you in advance
Alex
댓글 수: 2
Kulbir Kaur
2020년 5월 31일
can you please share the matlab code of this?
Kulbir Kaur
2020년 5월 31일
After identifying the highest peaks how are you zeroing them from the contaminated signal?
채택된 답변
추가 답변 (1개)
Dimitris Kalogiros
2019년 9월 30일
0 개 추천
I'm giving you some tips:
1) Use high order FFT/IFFT . For example 8192 or even higher.
2) You have to filter out (by setting them to 0), not only the highest sample (samples) , but a neighborhood around the highest. For example an interval of 1% of FFT length.
3) How "the highest magnitude sample" is defined ? Sometimes the true highest sample is hidden. A usefull method here is to pass the abs(FFT) signal, through a small Low Pass Filter, in order to find out intervals of frequencies, where high signal energy is concentrated.
카테고리
도움말 센터 및 File Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!