<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/Mode-swift.struct/dualRoute",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@AVAudioSessionModeDualRoute"
  },
  "title" : "dualRoute"
}
-->

# dualRoute

A mode that provides simultaneous use of the built-in microphone/speaker and a secondary audio device that supports input and output.

```
static let dualRoute: AVAudioSession.Mode
```

## Discussion

This mode can only be used with the [`multiRoute`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/multiRoute) category. It additionally requires you to set the [`allowBluetoothHFP`](/documentation/AVFAudio/AVAudioSession/CategoryOptions-swift.struct/allowBluetoothHFP) option.

Enabling this mode results in the following behavior:

- The primary audio route is always the built-in microphone/speaker.
- The supported secondary route types are [`headsetMic`](/documentation/AVFAudio/AVAudioSession/Port/headsetMic), [`headphones`](/documentation/AVFAudio/AVAudioSession/Port/headphones), [`bluetoothLE`](/documentation/AVFAudio/AVAudioSession/Port/bluetoothLE), and [`bluetoothHFP`](/documentation/AVFAudio/AVAudioSession/Port/bluetoothHFP).
- Only audio routes that support input and output are available for use.
- The hardware volume controls adjusts the volume for both primary and secondary routes.
- The system may engage appropriate signal processing for output routes.

> Important: This API may not be used to enable recordings of others without their awareness.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)