Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Please help : COM Component .Net

Please help : COM Component .Net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpcomsecurityjson
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    naresh_pandey13
    wrote on last edited by
    #1

    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 1 Reply Last reply
    0
    • N naresh_pandey13

      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 Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      Please provide more information for the error. 1 line of code equals many bugs. So don't write any!!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups