Mic input to trigger sounds - interference

Hi chaps.

This is a possibly pretty trivial question but I’m a stuck a little right now.

I’m taking mic input and triggering sound effects depending on how sustained the input is (say someone yelling into the mic). All works fine.

The trouble is that the output is then read as an input into the mic which then creates a false feedback loop. Hopefully someone has cracked this and can give me a pointer on how to ignore the sound coming out as an input.