<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/setAllowHapticsAndSystemSoundsDuringRecording(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioSession(im)setAllowHapticsAndSystemSoundsDuringRecording:error:"
  },
  "title" : "setAllowHapticsAndSystemSoundsDuringRecording(_:)"
}
-->

# setAllowHapticsAndSystemSoundsDuringRecording(_:)

Sets a Boolean value that indicates whether system sounds and haptics play while recording from audio input.

```
func setAllowHapticsAndSystemSoundsDuringRecording(_ inValue: Bool) throws
```

## Parameters

`inValue`

A Boolean value that indicates whether haptics and system sounds should play while recording is in progress.

---

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)