<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioEnvironmentOutputType/auto",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@E@AVAudioEnvironmentOutputType@AVAudioEnvironmentOutputTypeAuto"
  },
  "title" : "AVAudioEnvironmentOutputType.auto"
}
-->

# AVAudioEnvironmentOutputType.auto

Automatically detects the playback route and picks the correct output.

```
case auto
```

## Discussion

When using the automatic output type, wired output defaults to [`AVAudioEnvironmentOutputType.headphones`](/documentation/AVFAudio/AVAudioEnvironmentOutputType/headphones), and manual rendering with a two-channel output layout defaults to [`AVAudioEnvironmentOutputType.externalSpeakers`](/documentation/AVFAudio/AVAudioEnvironmentOutputType/externalSpeakers).

---

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)