I want to make a text-to-speech program for my interactive typing. 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 with a female voice. (These two voices are the only ones I need.)
I use Windows 8 Pro and Visual Studio 2010. I see only one voice pack - Microsoft Zira Desktop.
My code is as follows. How can I customize the use of male voice?
SpeechSynthesizer synth = new SpeechSynthesizer(); synth.Rate = 1; synth.Volume = 100; synth.SelectVoiceByHints(VoiceGender.Male,VoiceAge.Adult); synth.SpeakAsync(label18.Text);
source share