What software do you use?
2KHz is the frequency of my machine's beep. Just triggering on overall noise level alone would notify me each time the machine goes into spin, but using the FFT allows it to be more discerning.
(I'll try to publish the code soon.)
Perhaps someone (with more patience than I for Android/Kotlin development) can tweak it so that is can listen for knocking on a door to trigger some sort of alert (email/txt/broadcast an intent).
Triggering an intent would be very helpful as then it could then be acted upon by Tasker or Automagic4Android.