using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using SpeechLib; 语音朗读代码 需要先附加sapi.dll namespace DotNetSpeech { public partial class Form1 : Form { public Form1() { InitializeComponent(); } SpVoiceClass svc = new SpVoiceClass(); private void button1_Click(object sender, EventArgs e) { SpeechVoiceSpeakFlags spFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync; svc.Speak("哇哈哈", spFlags); } } }