Skip to main content

TranslateVoice

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

TranslateVoice, see FINTLTranslatorLang for a list of supported languages.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void TranslateVoice(FINTLTranslatorVoiceReq req_info);

Input parameters

ParameterTypeDescription
req_infoFINTLTranslatorVoiceReqTranslateVoice request info, see TranslatorVoiceReq for more information

Observers

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

The callback methodID is kMethodIDTranslatorTranslateVoice.

Code sample

	FINTLTranslatorVoiceReq req;
FString NativePath;

#if PLATFORM_ANDROID
NativePath = FPaths::Combine(FPaths::ProjectPersistentDownloadDir(), TEXT("intl-test/000.wav"));
#endif
req.voicePath = NativePath;
UINTLSDKAPI::TranslateVoice(req);