Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all gentleman:

i get(LH Michael,Microsoft Mary etc..) voice in comboBox but when I select voice from comboBox it does not change voice.it get the default voice which i choose in windows.when i run the code does not give any error also.
thanks from all .

mycode is:
private void Form1_Load(object sender, EventArgs e)
{
foreach (ISpeechObjectToken token in spvoice.GetVoices(string.Empty, string.Empty))
{
comboBox1.Items.Add(token.GetAttribute("Name"));
}
comboBox1.SelectedIndex = 0;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
spvoice.Voice = spvoice.GetVoices("Name="+comboBox1.Items[0].ToString(), string.Empty).Item(0);
}
Posted
Updated 31-Dec-10 20:08pm
v3

1 solution

This[^] article does it (very) slightly differently. Have a look to see if it helps.

Remember google is your friend in these circumstances. I used c# tts voice change as my search phrase.
 
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