IFacialSentence

C++
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;
  };
};
File

IFacialAnimation.h

Description

Sentence is a collection of phonemes and other lip syncing related data.

IFacialSentence::ChannelSample Structure
C++
struct ChannelSample {
  const char* phoneme;
  float strength;
};
File

IFacialAnimation.h

IFacialSentence::Phoneme Structure
C++
struct Phoneme {
  char phoneme[4];
  int time;
  int endtime;
  float intensity;
};
File

IFacialAnimation.h

Members
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.
IFacialSentence::Word Structure
C++
struct Word {
  const char * sWord;
  int startTime;
  int endTime;
};
File

IFacialAnimation.h

Members
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.
IFacialSentence::~IFacialSentence Destructor
C++
virtual ~IFacialSentence();
IFacialSentence::AddPhoneme Method
C++
virtual int AddPhoneme(const Phoneme & ph) = 0;
IFacialSentence::AddWord Method
C++
virtual void AddWord(const Word & wrd) = 0;
Description

Add a new word into the sentence.

IFacialSentence::ClearAllPhonemes Method
C++
virtual void ClearAllPhonemes() = 0;
IFacialSentence::ClearAllWords Method
C++
virtual void ClearAllWords() = 0;
Description

Delete all words in the sentence.

IFacialSentence::Evaluate Method
C++
virtual int Evaluate(float fTime, float fInputPhonemeStrength, int maxSamples, ChannelSample* samples) = 0;
IFacialSentence::GetPhoneme Method
C++
virtual bool GetPhoneme(int index, Phoneme & ph) = 0;
IFacialSentence::GetPhonemeCount Method
C++
virtual int GetPhonemeCount() = 0;
IFacialSentence::GetPhonemeLib Method
C++
virtual struct IPhonemeLibrary* GetPhonemeLib() = 0;
Description

Easy access to global phoneme library.

IFacialSentence::GetText Method
C++
virtual const char* GetText() = 0;
IFacialSentence::GetWord Method
C++
virtual bool GetWord(int index, Word & wrd) = 0;
Description

Retrieve word by index, 0 <= index < GetWordCount().

IFacialSentence::GetWordCount Method
C++
virtual int GetWordCount() = 0;
Description

Return number of words in the sentence.

IFacialSentence::SetText Method
C++
virtual void SetText(const char * text) = 0;