Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using the code is

C#
SpeechVoiceSpeakFlags my_Spflag = SpeechVoiceSpeakFlags.SVSFlagsAsync; 
SpVoice my_Voice = new SpVoice();  
my_Voice.Speak(textBox1.Text, my_Spflag);
my_Voice.Volume = 5;
my_Voice.Rate = 2;


Retrieving the COM class factory for component with CLSID {96749377-3391-11D2-9EE3-00C04F797396} failed due to the following error: 80040154.

This is my Exception

line was SpVoice my_voice =new SpVoice();

anyone please help to handle the COMException in this project
please it's urgent
Posted
Updated 10-Jun-11 4:07am
v2

1 solution

This error means that the DLL containing the COM library is not registered on your system. Use regsvr32 to register it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900