I am able to go through all of my available audio inputs but I need a way to identify which inputs in the bluetoothHFP category are airpods. I can't key off of "Airpods" in the name since that can be changed by the user.
for input in AVAudioSession.sharedInstance().availableInputs!{
if convertFromAVAudioSessionPort(input.portType) == convertFromAVAudioSessionPort(AVAudioSession.Port.bluetoothHFP) {
//How do I tell here that it is airpods and not another HFP device?
}
}