Package 

Class DominantSpeakerIdentification

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      synchronized void setLoudestConfig(int numLoudestToTrack_, int energyExpireTimeMs_, int energyAlphaPct_) Set energy ranking options
      void enableSilenceDetection(@NotNull() T silenceId) Enable silence detection with the default interval.
      synchronized void enableSilenceDetection(@NotNull() T silenceId, long timeout) Enable silence detection.
      JSONObject doGetJSON() Retrieves a JSON representation of this instance for the purposes of the REST API of Videobridge.
      T getDominantSpeaker() Gets the identifier of the dominant speaker.
      synchronized boolean isAmongLoudest(T id) Query whether a particular endpoint is currently one of the loudest speakers.
      SpeakerRanking levelChanged(T id, int level) Notifies this ActiveSpeakerDetector about the latest/current audio level of a stream/speaker identified by a specific synchronization source identifier/SSRC.
      • Methods inherited from class org.jitsi.utils.dsi.AbstractActiveSpeakerDetector

        addActiveSpeakerChangedListener, removeActiveSpeakerChangedListener
      • Methods inherited from class org.jitsi.utils.dsi.ActiveSpeakerDetector

        removeActiveSpeakerChangedListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DominantSpeakerIdentification

        DominantSpeakerIdentification()
        Initializes a new DominantSpeakerIdentification instance.
    • Method Detail

      • setLoudestConfig

         synchronized void setLoudestConfig(int numLoudestToTrack_, int energyExpireTimeMs_, int energyAlphaPct_)

        Set energy ranking options

      • enableSilenceDetection

         synchronized void enableSilenceDetection(@NotNull() T silenceId, long timeout)

        Enable silence detection. When enabled and the dominant speaker is silent for timeout ms, this DSI will fire a dominant speaker changed event with ID silenceId.

        Parameters:
        silenceId - the special ID to use for silence
        timeout - the interval in milliseconds of no activity before switching to silenceId.
      • doGetJSON

         JSONObject doGetJSON()

        Retrieves a JSON representation of this instance for the purposes of the REST API of Videobridge.

        By the way, the method name reflects the fact that the method handles an HTTP GET request.

      • isAmongLoudest

         synchronized boolean isAmongLoudest(T id)

        Query whether a particular endpoint is currently one of the loudest speakers.

      • levelChanged

         SpeakerRanking levelChanged(T id, int level)

        Notifies this ActiveSpeakerDetector about the latest/current audio level of a stream/speaker identified by a specific synchronization source identifier/SSRC.