Interface ActiveSpeakerDetectorFacade
Hierarchy
-
ActiveSpeakerDetectorFacade
Methods
subscribeToActiveSpeakerDetector
- subscribeToActiveSpeakerDetector(policy: ActiveSpeakerPolicy, callback: (activeSpeakers: string[]) => void, scoresCallback?: (scores: {}) => void, scoresCallbackIntervalMs?: number): void
-
Parameters
-
-
callback: (activeSpeakers: string[]) => void
-
- (activeSpeakers: string[]): void
-
Optional scoresCallback: (scores: {}) => void
-
-
Parameters
-
scores: {}
-
[attendeeId: string]: number
Returns void
-
Optional scoresCallbackIntervalMs: number
Returns void
unsubscribeFromActiveSpeakerDetector
- unsubscribeFromActiveSpeakerDetector(callback: (activeSpeakers: string[]) => void): void
-
Parameters
-
callback: (activeSpeakers: string[]) => void
-
- (activeSpeakers: string[]): void
Returns void
ActiveSpeakerDetectorFacade listens to the volume indicator updates from the RealtimeController.
When you are done using an
ActiveSpeakerDetectorFacade
, you should perform some cleanup steps in order to avoid memory leaks: