Class TeamsCaptions


  • public final class TeamsCaptions
    extends CallCaptions
    Teams captions for managing captions for a Teams Interop call.
    • Method Detail

      • getActiveCaptionLanguage

        public String getActiveCaptionLanguage()
        Get active caption language.
      • getSupportedCaptionLanguages

        public List<String> getSupportedCaptionLanguages()
        List of supported captions languages for Captions.
      • addOnCaptionsEnabledChangedListener

        public void addOnCaptionsEnabledChangedListener​(PropertyChangedListener listener)
        Adds the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped.
      • removeOnCaptionsEnabledChangedListener

        public void removeOnCaptionsEnabledChangedListener​(PropertyChangedListener listener)
        Removes the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped.
      • addOnActiveSpokenLanguageChangedListener

        public void addOnActiveSpokenLanguageChangedListener​(PropertyChangedListener listener)
        Adds the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed.
      • removeOnActiveSpokenLanguageChangedListener

        public void removeOnActiveSpokenLanguageChangedListener​(PropertyChangedListener listener)
        Removes the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed.
      • addOnActiveCaptionLanguageChangedListener

        public void addOnActiveCaptionLanguageChangedListener​(PropertyChangedListener listener)
        Adds the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed.
      • removeOnActiveCaptionLanguageChangedListener

        public void removeOnActiveCaptionLanguageChangedListener​(PropertyChangedListener listener)
        Removes the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed.
      • addOnCaptionsReceivedListener

        public void addOnCaptionsReceivedListener​(TeamsCaptionsListener listener)
        Adds the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call.
      • removeOnCaptionsReceivedListener

        public void removeOnCaptionsReceivedListener​(TeamsCaptionsListener listener)
        Removes the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call.
      • setCaptionLanguage

        public CompletableFuture<Void> setCaptionLanguage​(String language)
        Set the captions language.