Reputation: 2180
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?
Upvotes: 0
Views: 951
Reputation: 1144
It support in .NET 4.0 and higher versions..you need to explicitly include that namespace from Add Reference .NET tab
Upvotes: 0
Reputation: 1822
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.
Upvotes: 2