C# SpeechSynthesizer 使用

时间:2019-05-14 16:04:45   收藏:0   阅读:662

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!