public interface ActiveSpeakerDetector
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(long, int) and determine/identify which stream is
dominant/active (in terms of speech). When the active stream changes,
listeners registered via
|Modifier and Type||Method and Description|
Adds a listener to be notified by this active speaker detector when the active stream changes.
Notifies this ActiveSpeakerDetector about the latest/current audio level of a stream/speaker identified by a specific synchronization source identifier/SSRC.
Removes a listener to no longer be notified by this active speaker detector when the active stream changes.
void addActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
listener- the listener to register with this instance for notifications about changes of the active speaker
void levelChanged(long ssrc, int level)
ssrc- the SSRC of the stream/speaker
level- the latest/current audio level of the stream/speaker with the specified ssrc
void removeActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
listener- the listener to unregister with this instance for notifications about changes of the active speaker
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.