---
title: inputOrientation
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiosession/inputorientation
---

# inputOrientation

An orientation value that dictates which directions represent left and right when capturing audio from a built-in microphone configured for stereo recording.

## Declaration

```swift
var inputOrientation: AVAudioSession.StereoOrientation { get }
```

## Discussion

Discussion If you’re recording video, set the input orientation to match the video orientation. If you’re recording audio only, set the input orientation to match the user interface orientation. In either case, don’t modify the input orientation during recording. important: The audio session’s input orientation is independent of the orientation property of an AVAudioSessionDataSourceDescription.

## See Also

### Enabling stereo recording

- [preferredInputOrientation](avfaudio/avaudiosession/preferredinputorientation.md)
- [setPreferredInputOrientation(_:)](avfaudio/avaudiosession/setpreferredinputorientation(_:).md)
- [AVAudioSession.StereoOrientation](avfaudio/avaudiosession/stereoorientation.md)
