---
title: "setInputMuted(_:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudioapplication/setinputmuted(_:)"
---

# setInputMuted(_:)

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

## Declaration

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

## Parameters

- `muted`: A Boolean value that indicates the new mute state.

## Discussion

Discussion In platforms that use AVAudioSession, setting the value to true mutes all sources of audio input in the app. In macOS, the system instead invokes the callback that you register by calling setInputMuteStateChangeHandler(_:) to handle input muting. note: This setting is specific to your app and doesn’t affect hardware mute state.

## See Also

### Managing audio input mute state

- [isInputMuted](avfaudio/avaudioapplication/isinputmuted.md)
- [inputMuteStateChangeNotification](avfaudio/avaudioapplication/inputmutestatechangenotification.md)
- [setInputMuteStateChangeHandler(_:)](avfaudio/avaudioapplication/setinputmutestatechangehandler(_:).md)
