Tag: bluetooth

AVAudioRecorder / AVAudioSession与苹果Airpods

我看到这里已经提出的问题: AirPods不能作为录音机应用程序的input源 我检查了这个线程,但没有回应。 但是,有谁知道是否/为什么AVAudioRecorder可能无法使用AirPods作为input设备在应用程序中录制audio? 我有内置麦克风以及其他BT设备(Beats,便携式BT扬声器电话等)的录音工作,但使用AirPods时,我无法捕获audio。 此外,当要logging时,我正循环使用可用的input,并强制input为BT设备(请参阅下面的代码),在这种情况下为AirPods。 再次,适用于除AirPods以外的所有其他BT设备。 思考? 任何关于我们在这里做错的指导都是很好的。 这一直是疯狂的。 NSError *error; AVAudioSession *audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCategoryRecord withOptions:audioSession.categoryOptions|AVAudioSessionCategoryOptionAllowBluetooth error:&error]; [audioSession setActive:YES error:nil]; NSLog(@"Data sources: %@", [audioSession availableInputs]); // Data sources: ("<AVAudioSessionPortDescription: 0x1706071b0, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>", "<AVAudioSessionPortDescription: 0x170611bd0, type = BluetoothHFP; name = […]

AVAudioSessionPortBluetoothHFP,A2DP和LE有什么区别?

Apple的AVAudioSessionPortDescription参考中logging了三种不同的蓝牙相关audio端口types。 但是苹果公​​司对这三种types的解释不多。 有人可以帮助解释更多?