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
addActiveSpeakerChangedListener(ActiveSpeakerChangedListener)
are
notified.
Modifier and Type | Method and Description |
---|---|
void |
addActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
Adds a listener to be notified by this active speaker detector when the
active stream changes.
|
void |
levelChanged(long ssrc,
int level)
Notifies this ActiveSpeakerDetector about the latest/current
audio level of a stream/speaker identified by a specific synchronization
source identifier/SSRC.
|
void |
removeActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
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 speakervoid levelChanged(long ssrc, int level)
ssrc
- the SSRC of the stream/speakerlevel
- the latest/current audio level of the stream/speaker with
the specified ssrcvoid 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.