Forum Archive

Access microphone?

newtoonie

Is there a way to access the iPad's microphone with objc_util or any other module?

(I really just want to obtain the loudness that the microphone picks up)

JonB

something like this
https://github.com/shaun-h/pythonista-objc-utils/blob/master/Audio%20Recording.py
to get the recorder object. then you can use updateMeters() followed by either peakPowerForChannel_(channel) or averagePowerForChannel_(channel). See the apple docs on AVAudioRecorder

newtoonie

Thanks my dude ;)