Patrick.SE
Patrick.SE

Reputation: 4564

Microsoft.Speech Reference Missing C++/cli

I'm having a hard time finding any information on this so maybe someone here can enlighten me. I've coded a module in C++/Cli, everything is good, but for some reason in the reference list(When I right-click on the VS project to add a reference), I can't find Microsoft.Speech in the list.

There is another one that's equivalent, it's called System.Speech, but I absolutely need Microsoft.Speech. Since the module is pure managed code, shouldn't I have access to all the .NET modules? Or maybe there is a pack I can download to extend it?

Thanks.

Update:

I'm referring to these two calls:

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

Which can be found in the Kinect SDK samples. I need those in C++/CLI because I cannot access the kinect's recognizer if I use the System native version.

Upvotes: 0

Views: 603

Answers (2)

Aakash Anuj
Aakash Anuj

Reputation: 3871

Just in case you are not able to find Microsoft.Speech.dll in the .NET tab, you can do the following:

Import Microsoft.Speech.dll from the following location:

C:\Windows\assembly\GAC_MSIL\Microsoft.Speech\11.0.0.0__31bf3856ad364e35\Microsoft.Speech.dll

Upvotes: 1

Patrick.SE
Patrick.SE

Reputation: 4564

Here's the solution :

#using "Microsoft.Speech.dll"
using namespace Microsoft::Speech;
using namespace Microsoft::Speech::Recognition;

Everything now works perfectly.

Upvotes: 0

Related Questions