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. General Programming
  3. COM
  4. Please help : Speech API COM Component .Net

Please help : Speech API COM Component .Net

Scheduled Pinned Locked Moved COM
helpcsharpcomsecurityjson
1 Posts 1 Posters 1 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 have 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 in advance This is naresh

    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