I am developing an application that listens to voice commands, and the way to start / stop listening to voice commands is through the remote control (Airpods or a wired headset). I tried various options AVAudioSessionwith AVAudioSessionCategoryRecordand AVAudioSessionCategoryPlayAndRecordand got the following result:
If the default microphone is Bluetooth (Airpod) ( AVAudioSessionCategoryOptionAllowBluetooth), the application does not receive remote control events. When the built-in microphone or wired headset is used by default, the application receives remote control events.
Does anyone know if it is possible to turn on both Bluetooth microphones and receive remote control events?
I tested on iOS 11.0.1 and 11.0.3.
source
share