Reputation: 11
I can't change voice to male. It is always default, no matter what I try. Yet in my system, there ARE male voices.
I have tried:
synth.SelectVoiceByHints(VoiceGender.Male);
synth.SpeakAsync("Hello, my name is Evus.");
This doesn't even do anything, it will just speak with the default Cortana voice.
foreach (var v in synth.GetInstalledVoices().Select(v => v.VoiceInfo)) { Console.WriteLine("Name:{0}, Gender:{1}, Age:{2}", v.Description, v.Gender, v.Age); }
returns 2 male voices from my system. And yet, when I select Male it doesn't work.
I have tried to select the gender of the voices.
How to install and use additional voices in SpeechSynthesizer()?
Upvotes: 1
Views: 855
Reputation: 1
try to use
synth.SelectVoiceByHints(VoiceGender.Female); or synth.SelectVoiceByHints(VoiceGender.Male);
then just use synth.Speak("example"); I have had no issue switching at all
Upvotes: -1