# Host audio controls

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

The controls in this topic have an effect only when the local user is the session host.

A session host can manage the audio of everyone in the session through the `ZMVideoSDKAudioHelper`. To mute or unmute a single user, see [Mute audio](/docs/video-sdk/macos/audio/#mute-audio).

## Mute everyone

To mute every user in the session, call `muteAllAudio`. The boolean parameter controls whether muted users are allowed to unmute themselves afterward.

```swift
if let audioHelper = ZMVideoSDK.shared()?.getAudioHelper() {
    // Mute all users; pass true to let them unmute themselves.
    audioHelper.muteAllAudio(true)
}
```

```objectivec
ZMVideoSDKAudioHelper *audioHelper = [[ZMVideoSDK sharedVideoSDK] getAudioHelper];
// Mute all users; pass YES to let them unmute themselves.
[audioHelper muteAllAudio:YES];
```

## Unmute everyone

To unmute every user in the session, call `unmuteAllAudio`.

```swift
ZMVideoSDK.shared()?.getAudioHelper()?.unmuteAllAudio()
```

```objectivec
[[[ZMVideoSDK sharedVideoSDK] getAudioHelper] unmuteAllAudio];
```

## Allow users to unmute themselves

Use `allowAudioUnmutedBySelf` to control whether users are permitted to unmute their own audio.

```swift
ZMVideoSDK.shared()?.getAudioHelper()?.allowAudioUnmutedBySelf(true)
```

```objectivec
[[[ZMVideoSDK sharedVideoSDK] getAudioHelper] allowAudioUnmutedBySelf:YES];
```
