2 instantiations of InstalledVoice
System.Speech (2)
Internal\Synthesis\VoiceSynthesis.cs (2)
69_installedVoices.Add(new InstalledVoice(this, installedVoice.VoiceInfo)); 1481voices.Add(new InstalledVoice(voiceSynthesizer, new VoiceInfo(voiceToken)));
34 references to InstalledVoice
System.Speech (34)
Internal\Synthesis\VoiceSynthesis.cs (24)
66_installedVoices = new List<InstalledVoice>(s_allVoices.Count); 67foreach (InstalledVoice installedVoice in s_allVoices) 542internal ReadOnlyCollection<InstalledVoice> GetInstalledVoices(CultureInfo? culture) 546return new ReadOnlyCollection<InstalledVoice>(_installedVoices); 550Collection<InstalledVoice> voices = new(); 554foreach (InstalledVoice voice in _installedVoices) 562return new ReadOnlyCollection<InstalledVoice>(voices); 1108InstalledVoice? viDefault = null; 1114viDefault = InstalledVoice.Find(_installedVoices, defaultVoice != null ? defaultVoice.VoiceInfo : defaultVoiceId!); 1129viDefault ??= InstalledVoice.FirstEnabled(_installedVoices, CultureInfo.CurrentUICulture); 1158foreach (InstalledVoice sysVoice in _installedVoices) 1184private TTSVoice? MatchVoice(CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool switchContext, [DisallowNull] ref InstalledVoice? viDefault) 1189List<InstalledVoice> tokens = new(_installedVoices); 1203InstalledVoice sysVoice = MatchVoice(viDefault, culture, gender, age, variant, tokens); 1226private static InstalledVoice MatchVoice(InstalledVoice defaultTokenInfo, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, List<InstalledVoice> tokensInfo) 1229InstalledVoice? sysVoice = defaultTokenInfo; 1236InstalledVoice ti = tokensInfo[iToken]; 1270foreach (InstalledVoice ti in tokensInfo) 1465private static List<InstalledVoice> BuildInstalledVoices(VoiceSynthesis voiceSynthesizer) 1467List<InstalledVoice> voices = new(); 1773private List<InstalledVoice> _installedVoices; 1774private static List<InstalledVoice>? s_allVoices;
Synthesis\InstalledVoice.cs (8)
52if (obj is not InstalledVoice ti2) 68internal static InstalledVoice? Find(List<InstalledVoice> list, VoiceInfo voiceId) 70foreach (InstalledVoice ti in list) 80internal static InstalledVoice? FirstEnabled(List<InstalledVoice> list, CultureInfo culture) 82InstalledVoice? voiceFirst = null; 83foreach (InstalledVoice ti in list)
Synthesis\SpeechSynthesizer.cs (2)
243public ReadOnlyCollection<InstalledVoice> GetInstalledVoices() 247public ReadOnlyCollection<InstalledVoice> GetInstalledVoices(CultureInfo culture)