using System.Speech; using System.Speech.Recognition;//语音识别 using System.Speech.Synthesis;//语音合成 SpeechSynthesizer synth = new SpeechSynthesizer(); synth.Speak("Hello, world! i love you");