Hello,
I currently have code to create webcam that sits in free space and automajically moves up or down depending on a flag that I set by pressing a key on the keyboard. I want to be able to make it so that if sound is detected on the microphone (above a certain threshold so it doesn't just pick up noise) then the flag gets set to true. If the sound stops, (falls below threshold) the flag will go false and the moving will stop. I have all the components except for detecting sound from microphone and triggering an event.
Any help you guys can provide would be greatly appreciated!
Thanks!