These new attempts, but still don't work, may be because there is a conflict between the audio capture and audio playback of ARWorldTrackingConfiguration, which may need to be modified similar to these:
let audioSession = AVAudioSession.sharedInstance()
try? audioSession.setCategory(.playAndRecord, mode: .default, options: [.allowBluetooth, .mixWithOthers, .defaultToSpeaker])
try? audioSession.setActive(true, options: .notifyOthersOnDeactivation)
Is there any way to modify it in RealityKit?
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: