---
title: dualRoute
framework: avfaudio
role: symbol
role_heading: Type Property
path: avfaudio/avaudiosession/mode-swift.struct/dualroute
---

# dualRoute

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

## Declaration

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

## Discussion

Discussion This mode can only be used with the multiRoute category. It additionally requires you to set the 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, headphones, bluetoothLE, and 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.

## See Also

### Getting Standard Session Modes

- [default](avfaudio/avaudiosession/mode-swift.struct/default.md)
- [gameChat](avfaudio/avaudiosession/mode-swift.struct/gamechat.md)
- [measurement](avfaudio/avaudiosession/mode-swift.struct/measurement.md)
- [moviePlayback](avfaudio/avaudiosession/mode-swift.struct/movieplayback.md)
- [shortFormVideo](avfaudio/avaudiosession/mode-swift.struct/shortformvideo.md)
- [spokenAudio](avfaudio/avaudiosession/mode-swift.struct/spokenaudio.md)
- [videoChat](avfaudio/avaudiosession/mode-swift.struct/videochat.md)
- [videoRecording](avfaudio/avaudiosession/mode-swift.struct/videorecording.md)
- [voiceChat](avfaudio/avaudiosession/mode-swift.struct/voicechat.md)
- [voicePrompt](avfaudio/avaudiosession/mode-swift.struct/voiceprompt.md)
