---
title: record
framework: avfaudio
role: symbol
role_heading: Type Property
path: avfaudio/avaudiosession/category-swift.struct/record
---

# record

The category for recording audio while also silencing playback audio.

## Declaration

```swift
static let record: AVAudioSession.Category
```

## Discussion

Discussion This category has the effect of silencing virtually all output on the system, for as long as the session is active. Unless you need to prevent any unexpected sounds from being played, use playAndRecord instead. To continue recording audio when your app transitions to the background (for example, when the screen locks), add the audio value to the UIBackgroundModes key in your information property list file. The user must grant permission for audio recording. note: Using this category doesn’t prevent phone calls, alarms, or other nonmixable audio sessions from interrupting the audio session.

## See Also

### Getting Standard Categories

- [ambient](avfaudio/avaudiosession/category-swift.struct/ambient.md)
- [multiRoute](avfaudio/avaudiosession/category-swift.struct/multiroute.md)
- [playAndRecord](avfaudio/avaudiosession/category-swift.struct/playandrecord.md)
- [playback](avfaudio/avaudiosession/category-swift.struct/playback.md)
- [soloAmbient](avfaudio/avaudiosession/category-swift.struct/soloambient.md)
- [audioProcessing](avfaudio/avaudiosession/category-swift.struct/audioprocessing.md)
