> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# setActiveSpeakerMode()

> Enables or disables Active Speaker mode in Daily Prebuilt.

`setActiveSpeakerMode(enabled)`

✓ Prebuilt✗ Custom

In Active Speaker mode, the currently speaking participant is displayed prominently while others appear smaller. This is a local-only change — it does not affect other participants' views.

Has no effect if called before `join()`.

To specify the initial mode when joining, set the `activeSpeakerMode` [call property](https://docs.daily.co/reference/daily-js/types/daily-call-options.md#param-active-speaker-mode).

> [!NOTE]
>
> Active Speaker mode only exists in Daily Prebuilt. In custom call object builds, listen to [`active-speaker-change`](https://docs.daily.co/reference/daily-js/events/participant-events#active-speaker-change) events to drive your own active speaker UI.

## Parameters

**enabled** `boolean` *required*

`true` to enable Active Speaker mode, `false` to disable it.

## Return value

Returns `this` for chaining.

## Example

```javascript theme={null}
document.getElementById('active-speaker-toggle').addEventListener('change', (e) => {
  call.setActiveSpeakerMode(e.target.checked);
});
```

## See also

> [card] Types
>
> * [DailyCallOptions: activeSpeakerMode](https://docs.daily.co/reference/daily-js/types/daily-call-options.md#param-active-speaker-mode)

> [card] Methods
>
> * [activeSpeakerMode()](https://docs.daily.co/reference/daily-js/instance-methods/active-speaker-mode.md)

> [card] Events
>
> * [active-speaker-change](https://docs.daily.co/reference/daily-js/events/participant-events.md#active-speaker-change)
> * [active-speaker-mode-change](https://docs.daily.co/reference/daily-js/events/iframe-ui-events.md#active-speaker-mode-change)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.