SpeechTranslatorResponse.Text

public final class SpeechTranslatorResponse.Text implements SpeechTranslatorResponse


Represents a successful text translation result.

Summary

Public constructors

Text(@NonNull Locale locale, @NonNull String translatedText)

Public methods

final @NonNull Locale

the Locale of the translated text.

final @NonNull String

the string of the translated text.

Public constructors

Text

public Text(@NonNull Locale locale, @NonNull String translatedText)

Public methods

getLocale

public final @NonNull Locale getLocale()

the Locale of the translated text.

getTranslatedText

public final @NonNull String getTranslatedText()

the string of the translated text.