Post

Replies

Boosts

Views

Activity

Reply to AVAudioSession 'defaultToSpeaker' kills mic input on iPhone
Retested the AudioKit "Cookbook" app with Xcode Version 14.0.1 (14A400) and iOS 15.7 and 'defaultToSpeaker' is now working as expected. Retested on my app and the mic is now working when 'defaultToSpeaker' is an option. Also, the mode on the initial post as gameChat, but I had changed it back to default. This didn't affect the issue when I posted, but mode is default now and things are working. To that end, it appears that this AVAudioSession init string is correct and some glitch worked itself out over the last month: let audioSession: AVAudioSession = AVAudioSession.sharedInstance() try audioSession.setCategory(AVAudioSession.Category.playAndRecord, mode: AVAudioSession.Mode.default, options: [.defaultToSpeaker, .mixWithOthers]) try audioSession.setActive(true)
Sep ’22