Microsoft Speech Recognition - what reference do I have to add?

user1002973 picture user1002973 · Apr 4, 2012 · Viewed 19.2k times · Source

I'm trying to make a C# program that uses the Microsoft Speech Recognition API (with Kinect) but I'm struggling to get started. I have the using statements

using Microsoft.Speech.AudioFormat;
using Microsoft.Speech.Recognition;

But it's giving me the error "the type or namespace name 'Speech' does not exist in the namespace 'Microsoft'. Are you missing an assembly reference?"

Does anyone know what to add? System.Speech doesn't do the trick.

Answer

Philipp Schmid picture Philipp Schmid · Apr 4, 2012

Make sure you add this assembly to your project: C:\Program Files\Microsoft SDKs\Speech\v11.0\Assembly\Microsoft.Speech.dll.

More details can be found on MSDN