How to do this : com component
-
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 :laugh: This is naresh This is naresh -- modified at 6:49 Monday 9th January, 2006
-
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 :laugh: This is naresh This is naresh -- modified at 6:49 Monday 9th January, 2006