让你的程序说话

1、添加名称空间
using System.Speech.Synthesis;
2、开始说话
SpeechSynthesizer speak = new SpeechSynthesizer();
speak.SpeakAsync("Hello");

原文地址:https://www.cnblogs.com/qiujiahong/p/2380019.html