I want to make a text to speech program for my interactive training set. I used the System.Speech
library, but the voice is always female. I would like some sentences to be read with a male voice, and some to be read by a female voice. (These two voices are the only ones I need.)
I'm using Windows 8 Pro and Visual Studio 2010. I can see only one voice pack, the Microsoft Zira Desktop.
My code is as follows. How can I configure the use of a male voice?
SpeechSynthesizer synth = new SpeechSynthesizer();
synth.Rate = 1;
synth.Volume = 100;
synth.SelectVoiceByHints(VoiceGender.Male,VoiceAge.Adult);
synth.SpeakAsync(label18.Text);