Help on a sound reactor

I am trying to make a sound reactor so when you clap the lights on your phone on the problem is that I don't know how to do that so can anyone help me

here is a similar question and corresponding answer...

see also

which means it is not that simple... and even more complicated if you want to detect this also from the background..

Taifun

you could try an extension...

taken from the extensions directory App Inventor Extensions | Pura Vida Apps
Taifun

With the right pre-trained models, you can detect whether a certain noise was made (e.g. a clapping sound or a whistle) or a certain word

SoundClassification (ml5js.org)