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

# useActiveParticipant

> Returns an object for the participant id mentioned in the most recent active-speaker-change event.

Deprecated 0.17.0

`useActiveParticipant(params?) : Object | null`

`useActiveParticipant` can also set up an optional callback for the [`active-speaker-change`](https://docs.daily.co/reference/daily-js/events/participant-events#active-speaker-change) event.

## Parameters

**ignoreLocal** `boolean`

If `true`, `useActiveParticipant` will not return a participant object when the local participant is the active speaker.

**onActiveSpeakerChange** `Function`

Event callback for the [`active-speaker-change`](https://docs.daily.co/reference/daily-js/events/participant-events#active-speaker-change) event listener.

## Return value

Returns `DailyParticipant | null`. Contains detailed information about the participant, see [participant properties](https://docs.daily.co/reference/daily-js/types/daily-participant.md). If no participant has unmuted, `useActiveParticipant` returns `null`.

## Example

```jsx theme={null}
import { useActiveParticipant } from '@daily-co/daily-react';

export const CurrentSpeaker = () => {
  const activeSpeaker = useActiveParticipant();
  return (
    <div>{activeSpeaker?.user_name ?? 'Nobody'} is currently speaking.</div>
  );
};
```

## See also

> [card] Hooks
>
> * [useActiveSpeakerId()](https://docs.daily.co/reference/daily-react/use-active-speaker-id.md)
> * [useParticipantProperty()](https://docs.daily.co/reference/daily-react/use-participant-property.md)
> * [useParticipant()](https://docs.daily.co/reference/daily-react/use-participant.md)
> * [useLocalParticipant()](https://docs.daily.co/reference/daily-react/use-local-participant.md)
> * [useLocalSessionId()](https://docs.daily.co/reference/daily-react/use-local-session-id.md)
> * [useParticipantCounts()](https://docs.daily.co/reference/daily-react/use-participant-counts.md)
> * [useParticipantIds()](https://docs.daily.co/reference/daily-react/use-participant-ids.md)
> * [useWaitingParticipants()](https://docs.daily.co/reference/daily-react/use-waiting-participants.md)

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


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