user613326
user613326

Reputation: 2180

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?

Upvotes: 0

Views: 951

Answers (2)

Revan
Revan

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

SuperPrograman
SuperPrograman

Reputation: 1822

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.

Upvotes: 2

Related Questions