Please help : COM Component .Net
-
I am using the following code to test the speech api, using SpeechLib; using System.Security ; [SuppressUnmanagedCodeSecurityAttribute()] private void Button1_Click(object sender, System.EventArgs e) { try { SpVoice voice = new SpVoice(); voice.Speak("Hello",SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault); } catch(Exception ex) { Response.Write(ex.ToString()) ; } } I hav e added a reference to Microsoft Speech API through Add Reference tab-Com Componentes, i have also added the aspcompat=true @Page attribute But it is giving the error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004503A Please help me to get the code to Speak. Thanks a lot Thanks in advance This is naresh
-
I am using the following code to test the speech api, using SpeechLib; using System.Security ; [SuppressUnmanagedCodeSecurityAttribute()] private void Button1_Click(object sender, System.EventArgs e) { try { SpVoice voice = new SpVoice(); voice.Speak("Hello",SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault); } catch(Exception ex) { Response.Write(ex.ToString()) ; } } I hav e added a reference to Microsoft Speech API through Add Reference tab-Com Componentes, i have also added the aspcompat=true @Page attribute But it is giving the error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004503A Please help me to get the code to Speak. Thanks a lot Thanks in advance This is naresh