Audio2FaceRESTHandler Manages the HTTP REST API for A2F_headless mode. More...
#include <Audio2FaceRESTHandler.h>
Public Member Functions | |
void | TryInitialize () |
Check if A2F is running and attempt to initialize it. | |
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 mapping. | |
bool | IsInitializing () const |
bool | IsAvailable () const |
Audio2FaceRESTHandler Manages the HTTP REST API for A2F_headless mode.
Handles initialization, blendshape generation, and state tracking for Audio2Face. Not intended for parallel generation; manages single-threaded access.
void Audio2FaceRESTHandler::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 mapping.
Note: The wave file must be on the same machine as the A2F instance.
wavFileName | The name of the audio file to use for lipsync data generation. |
shapesFilePath | The path to write the JSON shapes file to. |
shapesFileName | The name of the JSON shapes file. |
callback | Callback with the path of the JSON file and success status. |
bool Audio2FaceRESTHandler::IsAvailable | ( | ) | const |
bool Audio2FaceRESTHandler::IsInitializing | ( | ) | const |
void Audio2FaceRESTHandler::TryInitialize | ( | ) |
Check if A2F is running and attempt to initialize it.
Loads the USD file for Metahuman ARKit and sets the player root path.