UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
Audio2FaceRESTHandler Class Reference

Audio2FaceRESTHandler Manages the HTTP REST API for A2F_headless mode. More...

#include <Audio2FaceRESTHandler.h>

Inheritance diagram for Audio2FaceRESTHandler:

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
 

Detailed Description

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.

Member Function Documentation

◆ GetBlendshapes()

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.

Parameters
wavFileNameThe name of the audio file to use for lipsync data generation.
shapesFilePathThe path to write the JSON shapes file to.
shapesFileNameThe name of the JSON shapes file.
callbackCallback with the path of the JSON file and success status.

◆ IsAvailable()

bool Audio2FaceRESTHandler::IsAvailable ( ) const
Returns
True if A2F is ready to generate new lipsync data.

◆ IsInitializing()

bool Audio2FaceRESTHandler::IsInitializing ( ) const
Returns
True if A2F is currently initializing.

◆ TryInitialize()

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.


The documentation for this class was generated from the following files: