0

hi all

I have 2 questions:

1)
I am tring to develop a speech recognition program that will recognize a langugae like Arabic. Is it pssoble to speech recognize Arabic in C#?
if yes, can i get some links to any resources..etc

2)
I have windows xp (so as far as i know sapi 5.0 ships with it - i can also add a refernce to it). I just tried to see if i could speech recognize some Egnlish with the following code:

public partial class Form1 : Form
{
private SpSharedRecoContextClass contextClass;
public Form1()
{
InitializeComponent();
Initialize();
}
 
private void Initialize()
{
try
{
//here i get COMException
contextClass = new SpSharedRecoContextClass();
}
catch (COMException e)
{
}
}
 
void contextClass_Recognition(int StreamNumber, object StreamPosition, SpeechRecognitionType RecognitionType, ISpeechRecoResult Result)
{
MessageBox.Show("You said: " + Result.PhraseInfo.GetText(0, -1, true));
}
}

The description of the COMException is:

Creating an instance of the COM component with CLSID {47206204-5ECA-11D2-960F-00C04F8EE628} from the IClassFactory failed due to the following error: 8004503a.

can anyone explain how to fix this problem?

thx alot

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Umaid
0

I am getting same exception now. I don' t know why? I have a tested and running code but now showing exceptions

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.