Translation API
Client API
Callback API
Callback API for the Player Network SDK tool module, see:
- Unity
- Unreal Engine
| API | Function Definition | |
|---|---|---|
| AddTranslatorResultObserver | Register the callback for the Translator module TranslatorResult.Used to handle the callback of the Translate interface. | |
| RemoveTranslatorResultObserver | Unregister the callback for TranslatorResult. |
| API | Function Definition |
|---|---|
| SetTranslatorResultObserver | Set the callback for the Translator module TranslatorResult. |
| GetTranslatorResultObserver | Get the callback for TranslatorResult. |
| OnTranslatorResult_Implementation | Implements the callback of TranslatorResult for the Translate interface. |
Tools API
For tool APIs of Player Network SDK, see:
- Unity
- Unreal Engine
| API | Function Definition |
|---|---|
| Translate | Obtain translation info and return the callback result of INTLTranslatorResult |
| TranslateVoice | Perform speech-to-text (ASR) and return the callback result of INTLTranslatorResult |
| TranslateVoiceV2 | Perform speech-to-text V2 (ASR v2) and return the callback result of INTLTranslatorResult |
| API | Function Definition |
|---|---|
| Translate | Obtain translation info and return the callback result of FINTLTranslatorResult |
| TranslateVoice | Perform speech-to-text (ASR) and return the callback result of FINTLTranslatorResult |
| TranslateVoiceV2 | Perform speech-to-text V2 (ASR v2) and return the callback result of FINTLTranslatorResult |