Write a program on Python or PHP to detect sound on Raspberry Pi or other computers.
That should be able in program:
1. Detection of sound predetermined parameters (from 0 to 140 Db) from integrated audio device working in ALSA
2. Run program, if the sound is registered (programs may be bash or python scripts)
3. Sound recording if it is above the threshold of detection
4. Record events in the log