-
- All Implemented Interfaces:
-
org.jitsi.utils.dsi.ActiveSpeakerDetector
public class DominantSpeakerIdentification<T> extends AbstractActiveSpeakerDetector<T>
Implements ActiveSpeakerDetector with inspiration from the paper "Dominant Speaker Identification for Multipoint Videoconferencing" by Ilana Volfin and Israel Cohen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDominantSpeakerIdentification.SpeakerRankingReturns information about an endpoint's energy levels relativeto other endpoints.
-
Constructor Summary
Constructors Constructor Description DominantSpeakerIdentification()Initializes a new DominantSpeakerIdentification instance.
-
Method Summary
Modifier and Type Method Description synchronized voidsetLoudestConfig(int numLoudestToTrack_, int energyExpireTimeMs_, int energyAlphaPct_)Set energy ranking options JSONObjectdoGetJSON()Retrieves a JSON representation of this instance for the purposes of theREST API of Videobridge. TgetDominantSpeaker()Gets the identifier of the dominant speaker. synchronized DominantSpeakerIdentification.SpeakerRankinggetRanking(T id)Get current energy rank and related data for an endpoint. voidlevelChanged(T id, int level)Notifies this ActiveSpeakerDetector about the latest/currentaudio level of a stream/speaker identified by a specific synchronizationsource 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
-
-
Method Detail
-
setLoudestConfig
synchronized void setLoudestConfig(int numLoudestToTrack_, int energyExpireTimeMs_, int energyAlphaPct_)
Set energy ranking options
-
doGetJSON
JSONObject doGetJSON()
Retrieves a JSON representation of this instance for the purposes of theREST API of Videobridge.
By the way, the method name reflects the fact that the method handles anHTTP GET request.
-
getDominantSpeaker
T getDominantSpeaker()
Gets the identifier of the dominant speaker.
-
getRanking
synchronized DominantSpeakerIdentification.SpeakerRanking getRanking(T id)
Get current energy rank and related data for an endpoint.
-
levelChanged
void levelChanged(T id, int level)
Notifies this ActiveSpeakerDetector about the latest/currentaudio level of a stream/speaker identified by a specific synchronizationsource identifier/SSRC.
-
-
-
-