using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Speech.Synthesis; namespace Sin365AIProject_01 { //public class SpeakChatMsgList //{ // public string ID { get; set; } // public string ChatMsg { get; set; } //} //public static class Speak //{ // public static List SpeakList = new List(); // public static void InSpeak() // { // SpeechSynthesizer sp = new SpeechSynthesizer(); // while (SpeakList.Count > 0) // { // var one = Speak.SpeakList.FirstOrDefault(); // sp.Speak(one.ChatMsg); // SpeakList.Remove(one); // } // } //} }