API reference
API reference
Select your platform
No SDKs available
No versions available

BaseTextureFlipLipSync Class

A base class for swapping out mouth textures during an audio animation based on the current viseme
Meta::WitAi::TTS::LipSync::BaseTextureFlipLipSync extends MonoBehaviour.
Meta::WitAi::TTS::LipSync::BaseTextureFlipLipSync extends Meta.WitAi.TTS.LipSync.ILipsyncAnimator.

Overview

Properties

abstract Renderer
The material to be used for the texture flip

Data Fields

The textures to be used for viseme swapping

Object Data

void
Reset ( )
void
Awake ( )
void
SetTexture
( Texture2D texture )
Apply texture to material

Public Member Functions

void
Refreshes texture lookup
void
OnVisemeLerp
( Viseme oldVieseme,
Viseme newViseme,
float percentage )
Called when a viseme is in the process of lerping from one value to another
void
Called when a viseme has fully changed to a new viseme

Details

Properties

abstract Renderer Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.Renderer
The material to be used for the texture flip

Fields

VisemeTextureData [] Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.VisemeTextures
The textures to be used for viseme swapping

Object Data

virtual void Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.Reset ( )
No description available.
virtual void Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.Awake ( )
No description available.
virtual void Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.SetTexture
( Texture2D texture )
Apply texture to material

Member Functions

void Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.RefreshTextureLookup ( )
Refreshes texture lookup
void Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.OnVisemeLerp
( Viseme oldVieseme,
Viseme newViseme,
float percentage )
Called when a viseme is in the process of lerping from one value to another
Parameters
oldVieseme
The last viseme shown
newViseme
The viseme that is being transitioned to
percentage
The percentage of the progress of transitioning
void Meta.WitAi.TTS.LipSync.BaseTextureFlipLipSync.OnVisemeChanged
( Viseme viseme )
Called when a viseme has fully changed to a new viseme
Parameters
viseme
Did you find this page helpful?
Thumbs up icon
Thumbs down icon