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; }
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)); }
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)); }
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); }