8 instantiations of VoiceInfo
System.Speech (8)
Internal\Synthesis\VoiceSynthesis.cs (3)
1446_defaultVoice = GetEngineWithVoice(null, new VoiceInfo(defaultVoice), defaultVoice.TokenName(), defaultVoice.Culture, gender, age, 1, switchContext); 1455VoiceInfo? defaultInfo = defaultVoice != null ? new VoiceInfo(defaultVoice) : null; 1481voices.Add(new InstalledVoice(voiceSynthesizer, new VoiceInfo(voiceToken)));
Synthesis\PromptBuilder.cs (5)
323StartVoice(new VoiceInfo(name)); 327StartVoice(new VoiceInfo(gender)); 331StartVoice(new VoiceInfo(gender, age)); 335StartVoice(new VoiceInfo(gender, age, voiceAlternate)); 339StartVoice(new VoiceInfo(culture));
36 references to VoiceInfo
System.Speech (36)
Internal\Synthesis\TTSEvent.cs (4)
14internal TTSEvent(TtsEventId id, Prompt prompt, Exception? exception, VoiceInfo? voice) 22internal TTSEvent(TtsEventId id, Prompt prompt, Exception? exception, VoiceInfo? voice, TimeSpan audioPosition, long streamPosition, string? bookmark, uint wParam, IntPtr lParam) 72internal VoiceInfo? Voice 154private VoiceInfo? _voice;
Internal\Synthesis\TTSVoice.cs (3)
15internal TTSVoice(ITtsEngineProxy engine, VoiceInfo voiceId) 139internal VoiceInfo VoiceInfo 152private VoiceInfo _voiceId;
Internal\Synthesis\VoiceSynthesis.cs (15)
724_pendingVoice = GetProxyEngine((VoiceInfo)parameters._parameter); 851VoiceInfo? currentVoiceId = null; 965private void InjectEvent(TtsEventId evtId, Prompt prompt, Exception? exception, VoiceInfo? voiceInfo) 1049private TTSVoice? GetVoice(VoiceInfo voiceInfo, bool switchContext) 1091private TTSVoice GetEngineWithVoice(TTSVoice? defaultVoice, VoiceInfo? defaultVoiceId, string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool switchContext) 1118VoiceInfo vi = viDefault.VoiceInfo; 1155VoiceInfo? voiceInfo = null; 1295private static int CalcMatchValue(CultureInfo? culture, VoiceGender gender, VoiceAge age, VoiceInfo? voiceInfo) 1332private TTSVoice? GetProxyEngine(VoiceInfo voiceInfo) 1352private ITtsEngineProxy? GetSsmlEngine(VoiceInfo voiceInfo) 1391private ITtsEngineProxy? GetComEngine(VoiceInfo voiceInfo) 1455VoiceInfo? defaultInfo = defaultVoice != null ? new VoiceInfo(defaultVoice) : null; 1551VoiceInfo? voice = ttsEvent.Voice; 1606foreach (KeyValuePair<VoiceInfo, TTSVoice> kv in _voiceDictionary) 1772private Dictionary<VoiceInfo, TTSVoice> _voiceDictionary = new();
Synthesis\InstalledVoice.cs (4)
18internal InstalledVoice(VoiceSynthesis voiceSynthesizer, VoiceInfo voice) 28public VoiceInfo VoiceInfo 68internal static InstalledVoice? Find(List<InstalledVoice> list, VoiceInfo voiceId) 131private VoiceInfo _voice;
Synthesis\PromptBuilder.cs (3)
269public void StartVoice(VoiceInfo voice) 273if (!VoiceInfo.ValidateGender(voice.Gender)) 278if (!VoiceInfo.ValidateAge(voice.Age))
Synthesis\SpeechSynthesizer.cs (3)
67if (!VoiceInfo.ValidateGender(gender)) 72if (!VoiceInfo.ValidateAge(age)) 439public VoiceInfo Voice
Synthesis\VoiceChangeEventArgs.cs (3)
9internal VoiceChangeEventArgs(Prompt prompt, VoiceInfo? voice) : base(prompt) 17public VoiceInfo? Voice 29private VoiceInfo? _voice;
Synthesis\VoiceInfo.cs (1)
128return obj is VoiceInfo voice