简体   繁体   English

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

[英]AudioKit connect External Bluetooth mic on IOS

Unable to connect external bluetooth mic as an input on AudioKit.无法连接外部蓝牙麦克风作为 AudioKit 的输入。 I have "HeyMic" on checking available input devices it doesn't show up but on checking available output devices it shows up.我在检查可用输入设备时没有显示“HeyMic”,但在检查可用输出设备时它显示了。 Any idea on how we can solve this?关于我们如何解决这个问题的任何想法?

You should enable the use Audio kit to use the bluetooth option to be true.您应该启用使用音频工具包以使用蓝牙选项为真。

You can use the below code您可以使用以下代码

do { 
    AKSettings.useBluetooth = true
    try AKSettings.setSession(category: .playAndRecord , with: [.allowBluetoothA2DP, .defaultToSpeaker, .allowAirPlay])
} catch {
    AKLog("Could not set session category.")
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM