> ## 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.

# activeSpeakerMode()

> Returns whether Daily Prebuilt is currently in Active Speaker layout mode.

`activeSpeakerMode()`

✓ Prebuilt✗ Custom

In Active Speaker mode, the participant who is currently speaking is displayed prominently while others appear smaller. When disabled, the layout defaults to a grid where every participant appears the same size.

Active Speaker mode is local-only — changing it only affects the local participant's view.

> [!NOTE]
>
> This method always returns `false` in call object mode. To build your own active-speaker UI with a custom call object, listen for [`active-speaker-change`](https://docs.daily.co/reference/daily-js/events/participant-events#active-speaker-change) events instead.

## Return value

`boolean` — `true` if Active Speaker mode is currently enabled, `false` otherwise. Returns `false` if the participant has not yet joined a call.

## Example

```javascript theme={null}
const isActiveSpeaker = call.activeSpeakerMode();
console.log('Active Speaker mode:', isActiveSpeaker);
```

## See also

> [card] Methods
>
> * [setActiveSpeakerMode()](https://docs.daily.co/reference/daily-js/instance-methods/set-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.