Skip to main content

Voice Translation (TranslateVoice)

AndroidiOS
If you are using Unreal Engine, please see Unreal Engine SDK's TranslateVoice.

For voice translation, refer to TranslatorLang to view the list of supported languages.

Function Definition

public static void TranslateVoice(INTLTranslatorVoiceReq req_info);

Parameter Instructions

ParametersTypeExplanation
req_infoINTLTranslatorVoiceReqTranslation request information. For details, see TranslatorVoiceReq

Observers

The callback handling interface is TranslatorResultObserver.The callback data structure is TranslatorResult.

Callback ID is kMethodIDTranslatorTranslateVoice.

Code example

        var translatorReq = new INTLTranslatorVoiceReq();
translatorReq.VoicePath = filePath;
translatorReq.GameCode = "";
INTLAPI.TranslateVoice(translatorReq);