amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy / ActiveSpeakerPolicy / calculateScore

calculateScore

abstract fun calculateScore(attendeeInfo: AttendeeInfo, volume: VolumeLevel): Double

Return the score of the speaker. If the score is 0, this speaker is not active.

Parameters

attendeeInfo - : AttendeeInfo - Attendee information containing attendeeId and externalUserId

volume - : VolumeLevel - Current volume of attendee