MediaSFU Shared
    Preparing search index...

    Function getActiveSpeaker

    • The loudest participant right now.

      Reads audioDecibels, which the SDK maintains per participant. MediaSFU's own grids treat roughly 127.5 as the noise floor, so quieter rooms report no active speaker rather than flickering between people.

      Parameters

      Returns ActiveSpeaker

      const speaker = getActiveSpeaker({ parameters });
      if (speaker.name) highlight(speaker.name);