Esempio n. 1
0
 public void AddFace(string name, float duration = 0.0f, bool asNewFrame = false)
 {
     if (asNewFrame || AnimatedVoices.Count == 0)
     {
         CreateNewFrame();
     }
     AnimatedVoices.Last().AddFace(name, duration);
 }
Esempio n. 2
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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }