Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Using the mic
-
How would I listen for a certain volume threshold and then do an action when the volume threshold reaches that point. I just want to use the built default input and listen for sound until it hits the threshold
-
here is something quick and dirty that updates the level meters within a custom view, and displays the result.
https://gist.github.com/572d3dca6e49d6c0ca0f48d9fae5d09e
you could add logic within udate() to check if recorder.peakPowerForChannel_(0) > some threshold, then take some action. the units are dB where -160 is totally quiet, and 0 is max input exceeded.