Sound decibel recognition

Hi Community Members, We tried to find the particular sound through the microphone. We used PKCCheck to detect the sound decibel. we detect the sound based on the number of dB values per second we receive and add some logic over it to get the result, but when we have continuous sound like an alarm we can't detect it as the gap between the sound is very less.

Any suggestion on libraries to achieve this.

Also whether we can achieve this thru Frequency & Amplitude method.

Please advise.