C# SpeechSynthesizer 使用

try
{
string msg = "XX是大大D傻瓜";
Console.Write(msg);
using (var speechSyn = new SpeechSynthesizer())
{
speechSyn.Speak(msg);
}
}
catch(Exception ex)
{
Console.Write(ex.ToString());
}
Console.ReadLine();

posted @ 2019-05-14 15:53  bobo-bobo  阅读(6948)  评论(0编辑  收藏  举报