How do I get C# to recognize system.speech namespace? RRS feed

  • Question

  • So I have Vista and have installed speech recognition and I can't get C# to recognize it's there. It flags it as wrong in the code editor saying it does not know of a namespace by that name. Any suggestions??? I am using C# Express
                                                                 -- Rich
    Wednesday, July 8, 2009 6:29 PM

All replies

    1. This forum is for Microsoft Speech Server Questions. You'd be better server in a Desktop/Windows Speech forum. You should be able to find an appropriate forum by asking here - http://social.microsoft.com/Forums/en-US/whatforum/
    2. You should ensure that you have added a reference to the assembly that contains the namespace.
    Wednesday, July 8, 2009 9:09 PM
  • Sorry. The assembly I am trying to get at with C# is System.speech.recognition. The compiler doesn't know about System.speech. Do I need to download Microsoft Speech Server, and, if so, the only one I can find on Microsoft's web site is version 5.1. I understand that there is a later version ?5.3. Where do I go to get that? Thanks.

                                                                                       -- Rich
    Thursday, July 9, 2009 7:26 PM
  • System.Speech.Recognition is a namespace not an assembly - http://msdn.microsoft.com/en-us/library/system.speech.recognition.aspx You need to reference the assembly that contains that namespace in your project i.e. System.Speech.dll

    The 5.1 & 5.3 that you're referencing are for the Speech API which is NOT Microsoft Speech Server.

    In General yes, if you want to use the functionality of an assembly you will need it on the machine that you're using to develop the code.
    Friday, July 10, 2009 9:05 PM