what are the default AudioCaptureOptions for micro...
# ask-ai
m
what are the default AudioCaptureOptions for microphone settings used in the iOS SDK
t
Thanks for reaching out, Nate. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I’d be happy to walk you through the default
AudioCaptureOptions
for microphone settings in the LiveKit iOS SDK, which do vary depending on your environment: • *On a physical iOS device:*This happens because Apple’s built-in Voice-Processing I/O takes care of echo cancellation, gain control, and noise suppression right at the system level, so the SDK doesn’t need to handle those. ◦
echoCancellation = false
◦
autoGainControl = false
◦
noiseSuppression = false
• *On the iOS simulator:*Here, these settings are enabled since Apple’s Voice-Processing I/O isn’t available in the simulator. So, the SDK relies on WebRTC’s software-based processing to fill in. ◦
echoCancellation = true
◦
autoGainControl = true
◦
noiseSuppression = true
Also, just so you know, properties like
highpassFilter
and
typingNoiseDetection
default to
false
if you don’t specify them. Sources: Tests/LiveKitTests/AudioProcessingTests.swift