标签:blog os ar sp div c on log r
添加COM组件引用:Microsoft Speech object library
private SpVoice voice; private void button1_Click(object sender, EventArgs e) { voice = new SpVoice(); voice.Rate = 0; voice.Volume = 100; voice.Speak(textBox1.Text, SpeechVoiceSpeakFlags.SVSFlagsAsync); } private void button2_Click(object sender, EventArgs e) { voice.Pause(); } private void button3_Click(object sender, EventArgs e) { voice.Resume(); }
标签:blog os ar sp div c on log r
原文地址:http://www.cnblogs.com/Wolfmanlq/p/4000256.html