一、语音程序
添加应用 Interop.SpeechLib.dll
下载地址:http://download.csdn.net/detail/jsjyyjs07/4398579
using SpeechLib;
/// <summary>
/// 发音
/// </summary>
/// <param name="content"></param>
void read(object content)
{
try
{
backgroundWorker1.RunWorkerAsync(content);
}
catch (Exception er)
{
MessageBox.Show(er.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
SpeechVoiceSpeakFlags spFlags = SpeechVoiceSpeakFlags.SVSFlagsAsy