detect a special sound

Put another way this is a hard AI problem, not something simple.