异常来自 HRESULT:0x8004503A
try
{
voice.Speak(strTxt.Trim(), SpeechVoiceSpeakFlags.SVSFlagsAsync);
// voice.Speak(strTxt.Trim(), SpeechVoiceSpeakFlags.SVSFDefault);
// voice.Speak(strTxt.Trim(), new SpeechVoiceSpeakFlags());
// voice.WaitUntilDone(30000);
}
catch (System.Runtime.InteropServices.COMException ex)
{
MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
Variables.bSound = true;
}
异常来自 HRESULT:0x8004503异常信息。一般是由Windows Audio服务没有开启造成的,尤其是win2003默认不开Windows Audio服务。
1)请确认Windows Audio(AudioSrv)服务启动。
进入cmd 输入net start AudioSrv
2)声卡驱动安装成功。"