DefaultActiveSpeakerPolicy

class DefaultActiveSpeakerPolicy @JvmOverloads constructor(    speakerWeight: Double = 0.9,     cutoffThreshold: Double = 0.01,     takeoverRate: Double = 0.2,     silenceThreshold: Double = 0.2) : ActiveSpeakerPolicy

DefaultActiveSpeakerPolicy A default implementation of the Active Speaker Policy

Constructors

Link copied to clipboard
constructor(speakerWeight: Double = 0.9, cutoffThreshold: Double = 0.01, takeoverRate: Double = 0.2, silenceThreshold: Double = 0.2)

Functions

Link copied to clipboard
open override fun calculateScore(attendeeInfo: AttendeeInfo, volume: VolumeLevel): Double

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