本文介绍了Windows更新后如何修复文本到语音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

Windows更新后我的程序:



TextToSPeechForWindows



运行时显示错误:





After a Windows update my program:

TextToSPeechForWindows

Shows an error when running:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80045039): Exception from HRESULT: 0x80045039
   at SpeechLib.ISpeechVoice.GetVoices(String RequiredAttributes, String OptionalAttributes)
   at SpeakTextSimple.FormMain.FormMain_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What I have tried:

I debugged, and the problem is at "GetVoices":


<pre>foreach (ISpeechObjectToken Token in SP.GetVoices(string.Empty, string.Empty))
            {
                comboBoxVoice.Items.Add(Token.GetDescription(49));
            }










An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in SpeakTextSimple.exe

Additional information: Exception from HRESULT: 0x80045039







我尝试以管理员身份运行,但仍然出现错误。




I tried running as admin and still an error appears.

推荐答案


这篇关于Windows更新后如何修复文本到语音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 11:18