Audio from Airpod mic into app

Greetings - our app needs to receive audio from Airpod mic. Note this does NOT involve camera - just audio from Airpod. Any guidance on xcode functions or techniques greatly appreciated. Thanks.

Hello Bob!

Unfortunately i haven’t done this myself before, but capturing audio from the device’s microphone can be done with the AVAudioRecorder class: (https://developer.apple.com/documentation/avfoundation/avaudiorecorder)

Whether the person is speaking into the device mic or AirPod mic shouldn’t make a difference as far as i know.

Try and google for some tutorials about the AVAudioRecorder class!

This sample might also help:

1 Like

it doesn’t work normally? normally its just an audio input/output device that your phone/device manages, so any decided that has that functionality should be able to receive audio regardless if it is airpods or not