Sin365AIProject/Sin365AIProject_01/Speak.cs
2018-10-11 20:44:17 +08:00

29 lines
773 B
C#

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<SpeakChatMsgList> SpeakList = new List<SpeakChatMsgList>();
// public static void InSpeak()
// {
// SpeechSynthesizer sp = new SpeechSynthesizer();
// while (SpeakList.Count > 0)
// {
// var one = Speak.SpeakList.FirstOrDefault();
// sp.Speak(one.ChatMsg);
// SpeakList.Remove(one);
// }
// }
//}
}