Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActiveSpeakerDetector

ActiveSpeakerDetector listens to the volume indicator updates from the RealtimeController. It consults the ActiveSpeakerPolicy to determine if the speaker is active or not.

Hierarchy

  • ActiveSpeakerDetector

Implemented by

Index

Methods

subscribe

  • subscribe(policy: ActiveSpeakerPolicy, callback: (activeSpeakers: string[]) => void, scoresCallback?: (scores: {}) => void, scoresCallbackIntervalMs?: number): void
  • Parameters

    • policy: ActiveSpeakerPolicy
    • callback: (activeSpeakers: string[]) => void
        • (activeSpeakers: string[]): void
        • Parameters

          • activeSpeakers: string[]

          Returns void

    • Optional scoresCallback: (scores: {}) => void
        • (scores: {}): void
        • Parameters

          • scores: {}
            • [attendeeId: string]: number

          Returns void

    • Optional scoresCallbackIntervalMs: number

    Returns void

unsubscribe

  • unsubscribe(callback: (activeSpeakers: string[]) => void): void

Generated using TypeDoc