22 references to VoiceInfo
System.Speech (22)
Internal\Synthesis\VoiceSynthesis.cs (11)
69_installedVoices.Add(new InstalledVoice(this, installedVoice.VoiceInfo)); 557if (culture.Equals(voice.VoiceInfo.Culture)) 1118VoiceInfo vi = viDefault.VoiceInfo; 1161if (sysVoice.Enabled && sysVoice.VoiceInfo.Name != null && (firstCharacter = name.IndexOf(sysVoice.VoiceInfo.Name, StringComparison.Ordinal)) >= 0) 1163int lastCharacter = firstCharacter + sysVoice.VoiceInfo.Name.Length; 1166voiceInfo = sysVoice.VoiceInfo; 1207voice = GetVoice(sysVoice.VoiceInfo, switchContext); 1230int bestMatch = CalcMatchValue(culture, gender, age, sysVoice.VoiceInfo); 1239int matchValue = CalcMatchValue(culture, gender, age, ti.VoiceInfo); 1272if (ti.Enabled && CalcMatchValue(culture, gender, age, ti.VoiceInfo) == bestMatch)
Synthesis\InstalledVoice.cs (11)
57return VoiceInfo.Name == ti2.VoiceInfo.Name && VoiceInfo.Age == ti2.VoiceInfo.Age && VoiceInfo.Gender == ti2.VoiceInfo.Gender && object.Equals(VoiceInfo.Culture, ti2.VoiceInfo.Culture); 61return VoiceInfo.Name?.GetHashCode() ?? 0; 72if (ti.Enabled && ti.VoiceInfo.Equals(voiceId)) 87if (Helpers.CompareInvariantCulture(ti.VoiceInfo.Culture!, culture))