---
title: AVAudioEnvironmentOutputType.auto
framework: avfaudio
role: symbol
role_heading: Case
path: avfaudio/avaudioenvironmentoutputtype/auto
---

# AVAudioEnvironmentOutputType.auto

Automatically detects the playback route and picks the correct output.

## Declaration

```swift
case auto
```

## Discussion

Discussion When using the automatic output type, wired output defaults to AVAudioEnvironmentOutputType.headphones, and manual rendering with a two-channel output layout defaults to AVAudioEnvironmentOutputType.externalSpeakers.

## See Also

### Output Types

- [AVAudioEnvironmentOutputType.headphones](avfaudio/avaudioenvironmentoutputtype/headphones.md)
- [AVAudioEnvironmentOutputType.builtInSpeakers](avfaudio/avaudioenvironmentoutputtype/builtinspeakers.md)
- [AVAudioEnvironmentOutputType.externalSpeakers](avfaudio/avaudioenvironmentoutputtype/externalspeakers.md)
