Options
All
  • Public
  • Public/Protected
  • All
Menu

The client of live transcription.

Index

Functions

  • Disable or enable captions. Only the host can call this function.

    Parameters

    • disable: boolean

    Returns ExecutedResult

  • getCurrentTranscriptionLanguage(): Language | null
  • Get the current transcription language.

    Returns Language | null

  • getCurrentTranslationLanguage(): Language | null
  • Get the current translation language.

    Returns Language | null

  • getLatestTranscription(): string
  • Get the latest transcription message.

    Returns string

  • getLatestTranslation(): string
  • Get the latest translation message.

    Returns string

  • Set translation language. Notes:

    • Check the translatedSetting from the getLiveTranscriptionStatus to verify whether the language is in the supported list.
    • Need to start live transcription before calling this function.

    Parameters

    Returns ExecutedResult

  • Start live transcription.

    zmClient.on('caption-message',(payload)=>{
    console.log(`receive new transcription:${payload.text}`)
    });

    const lttClient = zmClient.getLiveTranscriptionClient();
    lttClient.startLiveTranscription();

    Returns ExecutedResult