19#pragma region public API
36 void GetBlendshapes(
const FString& wavFileName,
const FString& shapesFilePath,
const FString& shapesFileName,
37 TFunction<
void(
const FString&,
bool )> callback);
46#pragma region private helper classes
49 enum class CurrentA2FState : uint8
60 std::atomic<CurrentA2FState> m_currentState = CurrentA2FState::NotConnected;
63#pragma region private API
65 void GetStatus(TFunction<
void(FHttpRequestPtr, FHttpResponsePtr,
bool)> callback)
const;
67 void LoadUsdFile(TFunction<
void(FHttpRequestPtr, FHttpResponsePtr,
bool)> callback)
const;
69 void SetPlayerRootPath(TFunction<
void(FHttpRequestPtr, FHttpResponsePtr,
bool)> callback)
const;
71 void SetPlayerTrack(
const FString& fileName, TFunction<
void(FHttpRequestPtr, FHttpResponsePtr,
bool)> callback)
const;
73 void GenerateBlendShapes(
const FString& filePath,
const FString& fileName,
74 TFunction<
void(FHttpRequestPtr, FHttpResponsePtr,
bool)> callback)
const;
90 FString JsonToString(TSharedRef<FJsonObject> jsonObject)
const;
100 TSharedRef<IHttpRequest, ESPMode::ThreadSafe> GetBaseRequest(
101 TFunction<
void(FHttpRequestPtr, FHttpResponsePtr,
bool)> callback)
const;
void GetBlendshapes(const FString &wavFileName, const FString &shapesFilePath, const FString &shapesFileName, TFunction< void(const FString &, bool)> callback)
Use the A2F export REST API to generate a JSON file containing all blendshape curve values for ARKit ...
Definition Audio2FaceRESTHandler.cpp:109