public static SpeechLib.SpVoice SP = new SpVoice();
foreach (SpeechLib.ISpeechObjectToken v in SP.GetVoices()) { comboBoxVoice.Items.Add(v.GetDescription(49)); }
private void btnSpeakPhonems_Click(object sender, EventArgs e) { if (comboBox1.SelectedIndex > 0) { SpVoice voice = new SpVoice(); voice.Voice = voice.GetVoices().Item(comboBox1.SelectedIndex); voice.Speak("<pron sym=\"ang 1 zang 1\">变脏</pron>", SpeechVoiceSpeakFlags.SVSFlagsAsync); } }
Speak(Xml_data_here)
GetVoices
Speak
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)