TranslationText

class TranslationText(participantId: String, participantName: String, participantLanguage: String, language: String, text: String, timestamp: Double, type: TranslationType?)

One utterance translated into the language this participant asked for with Room.changeTranslationLanguage.

The server broadcasts every target language to every participant; the SDK drops the ones this participant did not ask for, so one device never receives two languages for the same speech.

Constructors

Link copied to clipboard
constructor(participantId: String, participantName: String, participantLanguage: String, language: String, text: String, timestamp: Double, type: TranslationType?)

Functions

Link copied to clipboard

Two-letter code this text was translated into — the one this participant asked for, such as "hi".

Link copied to clipboard

The speaker's participant id.

Link copied to clipboard

Two-letter code of the language the speaker was talking in, such as "en".

Link copied to clipboard

The speaker's display name.

Link copied to clipboard

The translated words.

Link copied to clipboard

The service's timestamp for the utterance, or 0.0 when the payload carried none.

Link copied to clipboard

TranslationType.PARTIAL while the service is still revising this utterance, TranslationType.FULL once it has settled, or null for a value this SDK does not know.