110,566
社区成员
发帖
与我相关
我的任务
分享
SpeechLib.SpVoiceClass voice =new SpVoiceClass();
voice.Voice = voice.GetVoices(string.Empty, string.Empty).Item(0);
try
{
voice.Speak(strSpeack, SpeechVoiceSpeakFlags.SVSFlagsAsync);
}
catch (Exception err)
{
throw (new Exception("发生一个错误:" + err.Message));
}