I have set a reference to speechlib and trying to run the following code:
static void RunTraining()
{
SpSharedRecoContext RC = new SpSharedRecoContext();
string Title = "My App's Training";
ISpeechRecognizer spRecog = RC.Recognizer;
spRecog.DisplayUI(hWnd, Title,
SpeechLib.SpeechStringConstants.SpeechUserTraining, "");
}
However I am getting a class not registered 0x80040154
As it is a com object library I am compiling x86 and I have also run regsvr32 on the sapi.dll but to no avail.
Any help greatly appreciated, the code is in C#
User contributions licensed under CC BY-SA 3.0