amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerdetector / DefaultActiveSpeakerDetector

DefaultActiveSpeakerDetector

class DefaultActiveSpeakerDetector : ActiveSpeakerDetectorFacade, RealtimeObserver

DefaultActiveSpeakerDetector A default implementation of the Active Speaker Detector

Parameters

audioClientObserver - : AudioClientObserver - Needed to subscribe the detector to real time events like volume change, attendee mute and attendee unmute

Constructors

<init>

DefaultActiveSpeakerDetector A default implementation of the Active Speaker Detector

DefaultActiveSpeakerDetector(audioClientObserver: AudioClientObserver)

Properties

audioClientObserver

: AudioClientObserver - Needed to subscribe the detector to real time events like volume change, attendee mute and attendee unmute

val audioClientObserver: AudioClientObserver

Functions

addActiveSpeakerObserver

Adds an active speaker observer along with a policy to calculate active speaker scores

fun addActiveSpeakerObserver(policy: ActiveSpeakerPolicy, observer: ActiveSpeakerObserver): Unit

onAttendeesDropped

Handles attendee(s) being dropped due to network.

fun onAttendeesDropped(attendeeInfo: Array<AttendeeInfo>): Unit

onAttendeesJoined

Handles attendee(s) being added.

fun onAttendeesJoined(attendeeInfo: Array<AttendeeInfo>): Unit

onAttendeesLeft

Handles attendee(s) being removed.

fun onAttendeesLeft(attendeeInfo: Array<AttendeeInfo>): Unit

onAttendeesMuted

Handles attendee(s) whose VolumeLevel has changed to muted.

fun onAttendeesMuted(attendeeInfo: Array<AttendeeInfo>): Unit

onAttendeesUnmuted

Handles attendee(s) whose VolumeLevel has changed from muted.

fun onAttendeesUnmuted(attendeeInfo: Array<AttendeeInfo>): Unit

onSignalStrengthChanged

Handles signal strength changes for attendees whose SignalStrength has changed.

fun onSignalStrengthChanged(signalUpdates: Array<SignalUpdate>): Unit

onVolumeChanged

Handles volume changes for attendees whose VolumeLevel has changed.

fun onVolumeChanged(volumeUpdates: Array<VolumeUpdate>): Unit

removeActiveSpeakerObserver

Removes an active speaker observer.

fun removeActiveSpeakerObserver(observer: ActiveSpeakerObserver): Unit