Well, if you use CoreAudio, it has several libraries hidden inside that recognize recognition.
But anyway, if you don't have previous samples, I would recommend something where you try clap, and then compare the dubious samples to your samples, allowing some deviation from both x and y, and then add any successful ones detection in the sample list and reduce the tolerance.
, , , , .