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

ULipSyncDataA2F UObject-based container for Audio2Face lipsync data. More...

#include <LipSyncDataA2F.h>

Inheritance diagram for ULipSyncDataA2F:
ILipSyncBaseData

Public Member Functions

virtual void ReleaseData () override
 Clean up the A2F-lipsync data.
 
 ULipSyncDataA2F ()
 Constructor for the Audio2Face lipsync data holder.
 
void SetA2FCurveWeights (const TArray< TArray< float > > &sourceCurves, int framesPerSecond)
 Register the genereated curves from A2F as part of this data object.
 
int GetFramePerSecond () const
 
const TArray< TArray< float > > & GetA2FCurveWeights () const
 
- Public Member Functions inherited from ILipSyncBaseData
 ILipSyncBaseData ()
 Default constructor.
 
FGuid GetGuid () const
 Retrieves the unique GUID (FGuid) assigned to this instance.
 

Detailed Description

ULipSyncDataA2F UObject-based container for Audio2Face lipsync data.

Holds all data required for playback of Audio2Face lipsync generation. Keeps A2F logic modular and separated from other lipsync types. Each instance holds the lipsync data for a single voiceline and is responsible for its own cleanup.

Constructor & Destructor Documentation

◆ ULipSyncDataA2F()

ULipSyncDataA2F::ULipSyncDataA2F ( )
inline

Constructor for the Audio2Face lipsync data holder.

Adds this object to the root set to prevent garbage collection during playback.

Member Function Documentation

◆ GetA2FCurveWeights()

const TArray< TArray< float > > & ULipSyncDataA2F::GetA2FCurveWeights ( ) const
inline
Returns
A direct reference to the generated curve weights.

◆ GetFramePerSecond()

int ULipSyncDataA2F::GetFramePerSecond ( ) const
inline
Returns
The FPS that the curves were generated at.

◆ ReleaseData()

virtual void ULipSyncDataA2F::ReleaseData ( )
inlineoverridevirtual

Clean up the A2F-lipsync data.

Removes this object from the root set, allowing it to be garbage collected. Should be called when playback is finished and the data is no longer needed.

Implements ILipSyncBaseData.

◆ SetA2FCurveWeights()

void ULipSyncDataA2F::SetA2FCurveWeights ( const TArray< TArray< float > > & sourceCurves,
int framesPerSecond )
inline

Register the genereated curves from A2F as part of this data object.

These are returned by the A2F_headless REST api.

Parameters
sourceCurvesThe ARKit curve values per setting per frame.
framesPerSecondThe fps that this data was generated at (high framerates will interpolate)

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