I have a audio file consisting of multiple frequencies, I need to find all the frequency peaks in the frequency spectrum after doing FFT. But the issue is how can I be able to set the threshold line for the peaks. enter image description here
As you can clearly see I need to find all the peaks of this spectrum but sometimes amplitude is very high and sometimes it is too low so how will we be able to know the exact frequencies present inside audio.
If we set amplitude threshold to 0.5 the peak present at 17000Hz will not count but if we set it too low then in other cases when noises becomes larger and will be counted.