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();本文共 252 字,大约阅读时间需要 1 分钟。
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