Interface ActiveSpeakerDetector interface ActiveSpeakerDetector { subscribe ( policy : ActiveSpeakerPolicy , callback : ( activeSpeakers : string [] ) => void , scoresCallback ?: ( scores : { [ attendeeId : string ]: number } ) => void , scoresCallbackIntervalMs ?: number , ) : void ; unsubscribe ( callback : ( activeSpeakers : string [] ) => void ) : void ; } Methodssubscribe subscribe ( policy : ActiveSpeakerPolicy , callback : ( activeSpeakers : string [] ) => void , scoresCallback ?: ( scores : { [ attendeeId : string ]: number } ) => void , scoresCallbackIntervalMs ?: number , ) : void Parameters policy : ActiveSpeakerPolicy callback : ( activeSpeakers : string [] ) => void OptionalscoresCallback : ( scores : { [ attendeeId : string ]: number } ) => void OptionalscoresCallbackIntervalMs : number Returns void unsubscribe unsubscribe ( callback : ( activeSpeakers : string [] ) => void ) : void Parameters callback : ( activeSpeakers : string [] ) => void Returns void
[[ActiveSpeakerDetector]] listens to the volume indicator updates from the [[RealtimeController]]. It consults the [[ActiveSpeakerPolicy]] to determine if the speaker is active or not.