I have some sound from a microphone. The sampling rate is 44100. I divided it into fragments of 2048 and loaded it into speakers. The result was listening to what's in the microphone.

Then I made FFT over each fragment and reset some frequencies. After that, strange sounds appeared. Sounds appear clearly because of the edges of the plots of 2048.

How to eliminate these sounds? Is there a continuous option for Fourier? How else can I get information about sound other than FFT?

1 answer 1

The continuous option is usually done with overlappings. Each next fragment is taken not from the end of the previous one, but from the middle, then a window is superimposed on the fragments, if you do not know which is better, take the Hann window. If such fragments are folded in the time domain, then we get the original signal.

In general, it is usually not good to do an FFT over an arbitrary fragment of the signal, since the transformation is done over an infinite signal composed of this fragment and when the random beginning is connected to a random end, a rather broadband sound is obtained

As a good example you can read about MP3 compression