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();

原文地址:https://www.cnblogs.com/ilookbo/p/10862653.html