来自HRESULT的异常0x80045006 [英] Exception from HRESULT 0x80045006

查看:488
本文介绍了来自HRESULT的异常0x80045006的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过SpeechLib.dll讲语音时,它工作正常.

要说出声音,请输入以下代码:

When I speak the voice through SpeechLib.dll it is working fine.

To Speak the voice here is the code:

voice.Voice = voice.GetVoices().Item(ddlVoices.SelectedIndex);
voice.Volume = trackBarVolume.Value;
voice.Rate = trackBarSpeed.Value;
speakingText = txtUserInput.Text;
voice.Speak(speakingText, SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync);


在发言文本的中间,我已暂停讲话,例如:


In the middle of the speaking text i have Pause the speaking like:

voice.Pause();


之后,我想停止说话,并以不同的语调说出声音.要停止我使用的声音:


After that I want to stop the voice and speak the voice with different senatnce. To stop the voice I have used:

voice.Speak("", SpeechLib.SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak);


在这种情况下,当我调用stop方法时,出现以下错误:

Exception from HRESULT: 0x80045006


In this scenario when I call stop method I got the below error:

Exception from HRESULT: 0x80045006

And it take lot of time to give the responce.

推荐答案

[

这篇关于来自HRESULT的异常0x80045006的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆