> ## 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()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="red">{"✗"} Custom</Badge>

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`](/reference/daily-js/events/participant-events#active-speaker-change) events instead.
</Note>

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

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [setActiveSpeakerMode()](/reference/daily-js/instance-methods/set-active-speaker-mode)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [active-speaker-change](/reference/daily-js/events/participant-events#active-speaker-change)
    * [active-speaker-mode-change](/reference/daily-js/events/iframe-ui-events#active-speaker-mode-change)
  </Card>
</CardGroup>
