---
title: AVAudioSession.PortOverride.speaker
framework: avfaudio
role: symbol
role_heading: Case
path: avfaudio/avaudiosession/portoverride/speaker
---

# AVAudioSession.PortOverride.speaker

A value that indicates to override the current inputs and outputs, and route audio to the built-in speaker and microphone.

## Declaration

```swift
case speaker
```

## Discussion

Discussion This override type is only valid for the playAndRecord category.

## See Also

### Port Override Types

- [AVAudioSession.PortOverride.none](avfaudio/avaudiosession/portoverride/none.md)
