异常来自 HRESULT:0x8004503A
2009年09月02日 星期三 上午 09:19

异常来自 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)声卡驱动安装成功。"

posted on 2010-01-08 11:13  poop  阅读(7363)  评论(0编辑  收藏  举报