using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Speech.Synthesis; namespace QMTask.Client.Until { /// /// 语音输出工具 /// public class SpeechHelper { /// /// 将文字以语音形式输出 /// /// public static void OutputWordToSpeech(string word) { SpeechSynthesizer synth = new SpeechSynthesizer(); synth.Speak(word); } } }