-
public interface ActiveSpeakerDetector<T>Represents an algorithm for the detection/identification of the active/dominant speaker/participant/endpoint/stream in a multipoint conference.
Implementations of ActiveSpeakerDetector get notified about the (current) audio levels of multiple audio streams (identified by their synchronization source identifiers/SSRCs) via calls to levelChanged and determine/identify which stream is dominant/active (in terms of speech). When the active stream changes, listeners registered via addActiveSpeakerChangedListener are notified.
-
-
Method Summary
Modifier and Type Method Description abstract voidaddActiveSpeakerChangedListener(ActiveSpeakerChangedListener<T> listener)Adds a listener to be notified by this active speaker detector when theactive stream changes. abstract voidlevelChanged(T id, int level)Notifies this ActiveSpeakerDetector about the latest/currentaudio level of a stream/speaker identified by a specific synchronizationsource identifier/SSRC. abstract voidremoveActiveSpeakerChangedListener(ActiveSpeakerChangedListener<T> listener)Removes a listener to no longer be notified by this active speakerdetector when the active stream changes. -
-
Method Detail
-
addActiveSpeakerChangedListener
abstract void addActiveSpeakerChangedListener(ActiveSpeakerChangedListener<T> listener)
Adds a listener to be notified by this active speaker detector when theactive stream changes.
- Parameters:
listener- the listener to register with this instance fornotifications about changes of the active speaker
-
levelChanged
abstract 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.
- Parameters:
level- the latest/current audio level of the stream/speaker withthe specified ssrc
-
removeActiveSpeakerChangedListener
abstract void removeActiveSpeakerChangedListener(ActiveSpeakerChangedListener<T> listener)
Removes a listener to no longer be notified by this active speakerdetector when the active stream changes.
- Parameters:
listener- the listener to unregister with this instance fornotifications about changes of the active speaker
-
-
-
-