Skip to main content

Voice Translation (TranslateVoice)

AndroidiOS
If you are using the Unity engine, see Unity SDK's TranslateVoice

For voice translation, see FINTLTranslatorLang for the list of supported languages.

Function Definition

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

Parameter Instructions

ParametersTypeExplanation
req_infoFINTLTranslatorVoiceReqTranslation request information, see TranslatorVoiceReq for details.

Observers

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

Callback ID is kMethodIDTranslatorTranslateVoice.

Code example

	FINTLTranslatorVoiceReq req;
FString NativePath;

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