Browse Source

修复进入app后蓝牙不可以链接问题

newdev_shunjiawei
fdp 1 year ago
parent
commit
79d8a72179
  1. 14
      local_plugins/azure_speech/ios/azure_speech/Sources/tools/MicrophoneCapture.swift

14
local_plugins/azure_speech/ios/azure_speech/Sources/tools/MicrophoneCapture.swift

@ -108,13 +108,13 @@ public class MicrophoneCapture: NSObject {
let bluetoothHelper = ClassicBluetoothHelper.shared
self.hasBluetoothDevices = !bluetoothHelper.getConnectedAudioDevices().isEmpty
if self.hasBluetoothDevices {
// 有蓝牙连接:末端在手机,输出端在耳机
configureAudioForBluetoothMode()
} else {
// 无蓝牙连接:末端和输出端都在手机
configureAudioForPhoneMode()
}
// if self.hasBluetoothDevices {
// // 有蓝牙连接:末端在手机,输出端在耳机
// configureAudioForBluetoothMode()
// } else {
// // 无蓝牙连接:末端和输出端都在手机
// configureAudioForPhoneMode()
// }
}
/**

Loading…
Cancel
Save