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?
You must add a reference to it. Go to the solution explorer:
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.
Select it and click OK. Now it will recognize speech.