Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am trying to create Text to speech convertor using speech synthesizer there is option for gender wise voice but voice is common for every gender and for every age, can any one tell me how to change voice or can i add my own dictionary.

Thanks in Advance
Posted
Updated 24-Oct-13 3:04am
v2
Comments
Sergey Alexandrovich Kryukov 24-Oct-13 8:57am    
Not quite true, as I heard different voices long time ago, but maybe not all options are actually implemented. What was the code you tried? How about a short sample?
—SA
ShubhraRaj 24-Oct-13 9:11am    
Hey

Thanks for quick response


My code is

try
{
switch (comboBox1.SelectedItem.ToString())
{
case "NotSet":
voice.SelectVoiceByHints(VoiceGender.NotSet);
break;
case "Male":
voice.SelectVoiceByHints(VoiceGender.Male);
break;
case "Female":
voice.SelectVoiceByHints(VoiceGender.Female);
break;
case "Neutral":
voice.SelectVoiceByHints(VoiceGender.Neutral);
break;
}


voice.Volume = trackBar1.Value;
voice.Rate = trackBar2.Value;


voice.SpeakAsync(richTextBox1.Text);
Pause.Enabled = true;
Stop.Enabled = true;


but in response i am getting same voice....

Am i missing something??????

Sergey Alexandrovich Kryukov 24-Oct-13 9:59am    
Hm... I would need to try...
—SA

1 solution

I only have Microsoft Anna installed by default on Windows 7--I'd guess you're experiencing the same: if the gender/age/whatever you choose isn't available, it gives you what it's got. Not certain how you get more, but I'd bet on installing the SDK: http://www.microsoft.com/en-us/download/details.aspx?id=10121[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900