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

calculateScore

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