Voice Translation (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
| Parameters | Type | Explanation |
|---|---|---|
| req_info | FINTLTranslatorVoiceReq | Translation 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);