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