Sundar_Krishna:

to detect without any delay.


I’m not sure, if that would be possible, since you would be limited by the 5s recording time to calculate the mel cepstrum.
Given the frame of 5 seconds, you would calculate the (F)FT, apply the mel scale, use the log, and apply a DCT to get the cepstrum (spectrum of a spectrum).
Note that the longer the time frame, the more frequency bins you’ll get and vice versa.
If you would cut the signal in smaller windows, your frequencies would become “blurred”.