Ejemplo n.º 1
0
 public void AddAnimation(string name, string layerName, float duration = 0.0f, float fadeLength = -1.0f, float weight = 1.0f, float preGap = 0.0f, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddAnimation(name, layerName, duration, fadeLength, weight, preGap);
 }
Ejemplo n.º 2
0
 public void AddFace(string name, float duration = 0.0f, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddFace(name, duration);
 }
Ejemplo n.º 3
0
 public void AddVoiceTTS(string text, float preGap = 0.0f, float postGap = 0.0f, string name = null, Dictionary <string, string> ttsOptions = null, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddVoiceTTS(text, preGap, postGap, name, ttsOptions);
 }
Ejemplo n.º 4
0
 public void AddVoiceWeb(string url, float preGap = 0.0f, float postGap = 0.0f, string name = null, string text = null, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddVoiceWeb(url, preGap, postGap, name, text);
 }
Ejemplo n.º 5
0
 public void AddVoice(string name, float preGap = 0.0f, float postGap = 0.0f, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddVoice(name, preGap, postGap);
 }
 public void AddVoiceTTS(string text, float preGap = 0.0f, float postGap = 0.0f, string name = null, TTSConfiguration ttsConfig = null, string description = null, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddVoiceTTS(text, preGap, postGap, name, ttsConfig, description: description);
 }
Ejemplo n.º 7
0
 public int CreateNewFrame()
 {
     AnimatedVoices.Add(new AnimatedVoice());
     return(AnimatedVoices.Count);
 }