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