struct IFacialSentence { struct Phoneme { char phoneme[4]; int time; int endtime; float intensity; }; struct Word { const char * sWord; int startTime; int endTime; }; struct ChannelSample { const char* phoneme; float strength; }; };
IFacialAnimation.h
Sentence is a collection of phonemes and other lip syncing related data.
struct ChannelSample { const char* phoneme; float strength; };
IFacialAnimation.h
struct Phoneme { char phoneme[4]; int time; int endtime; float intensity; };
IFacialAnimation.h
Members |
Description |
char phoneme[4]; |
Phoneme name. |
int time; |
Start time of the phoneme in milliseconds. |
int endtime; |
End time the phoneme in milliseconds. |
float intensity; |
Phoneme intensity. |
struct Word { const char * sWord; int startTime; int endTime; };
IFacialAnimation.h
Members |
Description |
const char * sWord; |
Word text |
int startTime; |
Start time of the word in milliseconds. |
int endTime; |
End time of the word in milliseconds. |
virtual ~IFacialSentence();
virtual int AddPhoneme(const Phoneme & ph) = 0;
virtual void AddWord(const Word & wrd) = 0;
Add a new word into the sentence.
virtual void ClearAllPhonemes() = 0;
virtual void ClearAllWords() = 0;
Delete all words in the sentence.
virtual int Evaluate(float fTime, float fInputPhonemeStrength, int maxSamples, ChannelSample* samples) = 0;
virtual bool GetPhoneme(int index, Phoneme & ph) = 0;
virtual int GetPhonemeCount() = 0;
virtual struct IPhonemeLibrary* GetPhonemeLib() = 0;
Easy access to global phoneme library.
virtual const char* GetText() = 0;
virtual bool GetWord(int index, Word & wrd) = 0;
Retrieve word by index, 0 <= index < GetWordCount().
virtual int GetWordCount() = 0;
Return number of words in the sentence.
virtual void SetText(const char * text) = 0;