コード例 #1
0
ファイル: Voice.cs プロジェクト: amitkumbhar14/ChatdollKit
 public Voice(string name, float preGap, float postGap, string text, string url, TTSConfiguration ttsConfig, VoiceSource source, bool useCache, string description)
 {
     Name        = name;
     PreGap      = preGap;
     PostGap     = postGap;
     Text        = text;
     Url         = url;
     TTSConfig   = ttsConfig;
     Source      = source;
     UseCache    = useCache;
     Description = description;
 }
コード例 #2
0
 public void AddVoice(string name, float preGap = 0.0f, float postGap = 0.0f, string text = null, string url = null, TTSConfiguration ttsConfig = null, VoiceSource source = VoiceSource.Local, string description = null)
 {
     Voices.Add(new Voice(name, preGap, postGap, text ?? string.Empty, url ?? string.Empty, ttsConfig, source, false, description));
 }
コード例 #3
0
 public void AddVoiceTTS(string text, float preGap = 0.0f, float postGap = 0.0f, string name = null, TTSConfiguration ttsConfig = null, bool useCache = true, string description = null)
 {
     Voices.Add(new Voice(name ?? string.Empty, preGap, postGap, text, string.Empty, ttsConfig, VoiceSource.TTS, useCache, description));
 }
コード例 #4
0
 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);
 }