startTranslation

suspend fun startTranslation(config: JSONObject? = null)

Starts live translation for the room.

Each device receives only the language it asked for — set at createRoom or changed with changeTranslationLanguage — and it arrives on RoomEventListener.onTranslationText. One device can never show two languages at once. RoomEventListener.onTranslationStateChanged tracks the service coming up.

Parameters

config

forwarded to the server unchanged; null uses the room's defaults.

Throws

code 4042 (START_TRANSLATION_FAILED) if the server refuses.