9 references to VoiceInfo
System.Speech (9)
Internal\Synthesis\TTSVoice.cs (3)
30
return obj is TTSVoice voice && (_voiceId.Equals(voice.
VoiceInfo
));
77
if (
VoiceInfo
.SupportedAudioFormats?.Count > 0)
80
targetWaveFormat =
VoiceInfo
.SupportedAudioFormats[0].WaveFormat;
Internal\Synthesis\VoiceSynthesis.cs (3)
862
if (voice != null && (currentVoiceId == null || !currentVoiceId.Equals(voice.
VoiceInfo
)))
864
currentVoiceId = voice.
VoiceInfo
;
1114
viDefault = InstalledVoice.Find(_installedVoices, defaultVoice != null ? defaultVoice.
VoiceInfo
: defaultVoiceId!);
Synthesis\InstalledVoice.cs (1)
107
if (_voice.Equals(_voiceSynthesizer.CurrentVoice(switchContext).
VoiceInfo
))
Synthesis\SpeechSynthesizer.cs (2)
40
if (ttsVoice == null || name != ttsVoice.
VoiceInfo
.Name)
444
return VoiceSynthesizer.CurrentVoice(true).
VoiceInfo
;