AudioKit在IOS上连接外部蓝牙麦克风

问题描述 投票:0回答:1

无法连接外部蓝牙麦克风作为AudioKit的输入。我在检查可用的输入设备时没有显示“ HeyMic”,但是在显示可用的输出设备时显示了“ HeyMic”。关于如何解决这个问题的任何想法吗?

ios bluetooth audiokit
1个回答
0
投票

您应该启用使用音频工具包以使蓝牙选项为真。

您可以使用下面的代码

do { 
    AKSettings.useBluetooth = true
    try AKSettings.setSession(category: .playAndRecord , with: [.allowBluetoothA2DP, .defaultToSpeaker, .allowAirPlay])
} catch {
    AKLog("Could not set session category.")
}
© www.soinside.com 2019 - 2024. All rights reserved.