## Documentation Index

Fetch the complete documentation index at: [/llms.txt](https://docs.cognigy.com/llms.txt)

Use this file to discover all available pages before exploring further.

## Mute

Mutes the local microphone for the current call. The remote party won’t hear audio from the local user.

## Signature

```
await client.mute();
```

## Parameters

None.

## Returns

`Promise<void>`

## Throws

An error if there is no active session to mute or if the session is not established.

## Example

```
await client.mute();
console.log('Microphone muted');
```

### Toggle Mute

```
const session = client.getCurrentSession();
if (session) {
  if (session.muted) {
    await client.unmute();
  } else {
    await client.mute();
  }
}
```

## More Information

- [unmute](https://docs.cognigy.com/click-to-call/sdk/api-reference/unmute)
- [getCurrentSession](https://docs.cognigy.com/click-to-call/sdk/api-reference/get-current-session)
- [muted](https://docs.cognigy.com/click-to-call/sdk/event-reference/muted) event

Last modified on April 21, 2026
