<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioApplication/setInputMuted(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioApplication(im)setInputMuted:error:"
  },
  "title" : "setInputMuted(_:)"
}
-->

# setInputMuted(_:)

Sets a Boolean value that indicates whether the app’s audio input is in a muted state.

```
func setInputMuted(_ muted: Bool) throws
```

## Parameters

`muted`

A Boolean value that indicates the new mute state.

## Discussion

In platforms that use [`AVAudioSession`](/documentation/AVFAudio/AVAudioSession), setting the value to <doc://com.apple.documentation/documentation/Swift/true> mutes all sources of audio input in the app. In macOS, the system instead invokes the callback that you register by calling [`setInputMuteStateChangeHandler(_:)`](/documentation/AVFAudio/AVAudioApplication/setInputMuteStateChangeHandler(_:)) to handle input muting.

> Note:
> This setting is specific to your app and doesn’t affect hardware mute state.

---

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)