Skip to main content

Translation API

Client API​

Callback API​

Callback API for the Player Network SDK tool module, see:

APIFunction definition
AddTranslatorResultObserverRegister the callback for the Translator module TranslatorResult.Used to handle the callback of the Translate interface.
RemoveTranslatorResultObserverUnregister the callback for TranslatorResult.

Tools API​

For tool APIs of Player Network SDK, see:

APIFunction definition
TranslateObtain translation info and return the callback result of INTLTranslatorResult
TranslateVoicePerform speech-to-text (ASR) and return the callback result of INTLTranslatorResult
TranslateVoiceV2Perform speech-to-text V2 (ASR v2) and return the callback result of INTLTranslatorResult