I am working on a Raspberry Pi project with the goal to detect sound and turn on a webcam as a result of the detected sound.
I am not sure how I will be able to let the program react to the detected sound by the microphone. Can someone show me some basic Python code which will use the sound and do 'something' with it? It is okay if it would only print a string; I just need to see how the sound is being detected and used in the program.