Skip to content

Display active speakers

RealtimeKit automatically detects and tracks participants who are actively speaking in a meeting. You can display either a single active speaker or multiple active speakers in your application UI, depending on your design requirements.

An active speaker in RealtimeKit is a remote participant with prominent audio activity at any given moment. The SDK maintains two types of data to help you build your UI:

  • Active speaker — A single remote participant who is currently speaking most prominently.
  • Active participants — A set of remote participants with the most prominent audio activity.

The SDK automatically updates these properties and subscribes to participant media as speaking activity changes. It prioritizes prominent audio activity, so a participant not currently visible in your UI can replace a visible participant if their audio becomes more active.

The maximum number of participants in the active map is one less than the grid size configured in the local participant's Preset. This reserves space for the local participant in your UI. For example, if the grid size is 6, the active map contains a maximum of 5 remote participants.

Display a single active speaker

Display multiple active speakers

Visualize audio activity