LipSyncGenerator Internal helper class with static functions for generating lipsync data for audio. More...
#include <LipSyncGenerator.h>
Static Public Member Functions | |
static void | GenerateA2FLipSyncData (const TArray< uint8 > &rawAudioData, TWeakPtr< Audio2FaceRESTHandler > A2FRestHandler, TFunction< void(ULipSyncDataA2F *)> callback) |
Generate the A2F curves in a background thread and attach them to the ULipSyncDataA2F instance. | |
static ULipSyncDataCustom * | GenerateCustomLipSyncData () |
Generate an empty ULipSyncDataCustom wrapper, currently only used for integration tests. | |
LipSyncGenerator Internal helper class with static functions for generating lipsync data for audio.
Downloads the data from the VoxtaServer REST api, converting it into a SoundWave, and generating lipsync data.
Note: The private API hooks into callbacks from background-threads, use care when changing the implementation.
|
static |
Generate the A2F curves in a background thread and attach them to the ULipSyncDataA2F instance.
Note: Returned object of ULipSyncDataA2F* is attached to Root on creation, to avoid premature deletion.
rawAudioData | The raw audiodata in bytes. |
A2FRestHandler | Weak pointer to the A2F REST API handler; the callback is skipped if the handler is no longer valid. |
callback | The callback that will be triggered when the A2F curves have been created and imported back into the gamethread. |
|
static |
Generate an empty ULipSyncDataCustom wrapper, currently only used for integration tests.
Note: Returned object of ULipSyncDataCustom* is attached to Root on creation, to avoid premature deletion.