Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace LiveTranscriptionClient

The client of live transcription.

Index

Functions

getCurrentTranscriptionLanguage

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

    Returns Language | null

getCurrentTranslationLanguage

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

    Returns Language | null

getFullTranscriptionHistory

getLatestTranscription

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

    Returns string

getLatestTranslation

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

    Returns string

getLiveTranscriptionStatus

setSpeakingLanguage

setTranslationLanguage

  • 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

startLiveTranscription

  • Start live transcription.

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

    Returns ExecutedResult