Skip to main content

TranslateVoice

AndroidiOS
If you were looking for the method for use with Unreal Engine, see TranslateVoice for Unreal Engine SDK.

TranslateVoice, see TranslatorLang for a list of supported languages.

Function definition

public static void TranslateVoice(INTLTranslatorVoiceReq info);

Input parameters

ParameterTypeDescription
req_infoINTLTranslatorVoiceReqTranslateVoice request info, see TranslatorVoiceReq

Observers

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

The callback methodID is kMethodIDTranslatorTranslateVoice.

Code sample

TranslatorLang contains the languages supported, see TranslatorLang.

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