Search code examples
c#speech-to-text

System.Speech not recognized


I am using C# 2010 Express, and I want to do speech recognition. However, when I type the following at the beginning of my file:

using System.Speech;

System.Speech is not recognized. Just to be sure, I installed the Speech SDK from Microsoft, but saw no difference.

I am using the .NET 4.0 Client Profile framework, which should work fine, I think.

What should I do to resolve this? Is it a limitation of C# Express?


Solution

  • You must add a reference to it. Go to the solution explorer:

    enter image description here

    Then right-click the references item and choose add reference. Make sure you are on the tab .Net in the window that pops up. Scroll down until you see System.Speech.

    enter image description here

    Select it and click OK. Now it will recognize speech.