Audio Detection Trigger

Has anyone come across an app that can detect sound and able to automate its result? ( I may not be asking it correctly)

For example, I've been looking into creating a macros that trigger with a decibel change or at a peak in audio. I know that I could use the Find Image feature in KBM but it does seem very finicky or tricky to get great results. Am I wrong? Or does someone have another suggestion?