//引入语音合成名称空间 using System.Speech.Synthesis; class A { void test1() { //实例化 并指定字符串 播放合成读音 SpeechSynthesizer sp = new SpeechSynthesizer(); sp.Speak("中国"); } }