Contents

farFieldInput

This option should be used if a session prefers to use FarFieldInput when available. This option is only valid with categories that support input - Playandrecord and Record.

Declaration

static var farFieldInput: AVAudioSession.CategoryOptions { get }

Discussion

  • This option requires AVAudioSessionCategoryOptionAllowBluetoothHFP to be set. Otherwise error will be returned.

  • Support for this can be queried on input ports via the BluetoothMicrophone interface on a port, via its member farFieldCapture.isSupported.

  • Active sessions can see if far-field input is enabled on a bluetooth audio device by querying the BluetoothMicrophone interface of the input port of the current route for: farFieldCapture.isEnabled.

See Also

Inspecting the category configuration