gpt4 book ai didi

ios - 验证必需字段 : Unknown selected data source for Port Speaker (type: Speaker)

转载 作者:行者123 更新时间:2023-11-28 09:48:51 26 4
gpt4 key购买 nike

我在 xcode10.1 中使用超声波 Chirp SDK。我多次在日志中收到此警告消息:

[avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)

下面的我试过了

let audioSession = AVAudioSession.sharedInstance()  

do {
try audioSession.setCategory(AVAudioSession.Category.playAndRecord, mode: .spokenAudio, options: .defaultToSpeaker)
try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
} catch {
print("audioSession properties weren't set because of an error.")
}

但仍然对我显示警告。如何修复此警告。提前致谢

最佳答案

这里是来自 Chirp 的 Dan。不幸的是,此警告是某些设备上当前 Chirp iOS SDK (3.4.3) 中的一个已知问题,无法通过用户端的代码修复。它计划在未来几周内发布的下一个版本中修复。但是,它是良性的,不会影响功能。

关于ios - 验证必需字段 : Unknown selected data source for Port Speaker (type: Speaker),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53827990/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com