> This page is for Browser SDK, version v4 (default).
> For other versions, use one of these documentation indexes:
> - v4 (default): https://signalwire.com/docs/browser-sdk/v4/llms.txt
> - v3: https://signalwire.com/docs/browser-sdk/v3/llms.txt
> - v2: https://signalwire.com/docs/browser-sdk/v2/llms.txt

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# toggleEchoCancellation

> Toggles echo cancellation on the audio input.

```ts
toggleEchoCancellation(): Promise<void>
```

Toggles echo cancellation on the audio input.

## **Returns**

`Promise<void>`

## **Examples**

```ts
await participant.toggleEchoCancellation();
```

## **See**

* [`echoCancellation$`](/docs/browser-sdk/v4/reference/participant/echo-cancellation\$) — reactive state pair.
* [`toggleAudioInputAutoGain`](/docs/browser-sdk/v4/reference/participant/toggle-audio-input-auto-gain) / [`toggleNoiseSuppression`](/docs/browser-sdk/v4/reference/participant/toggle-noise-suppression).
* [`SelfParticipant.enableStudioAudio`](/docs/browser-sdk/v4/reference/self-participant/enable-studio-audio) — disable all three at once.