Class Not Registered Microsoft Speech Object library SpeechLib

1

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#

c#
asked on Stack Overflow Sep 22, 2018 by Rachel 674 • edited Sep 22, 2018 by TheGeneral

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0