Help! Interop.SpeechLib error in ASP.NET application(C# code)

M

MurugesanP

I have developed a web application in ASP.NET using C# code for text to
speech conversion and save as wav file, it is working fine with my system(xp)
but after uploading it into the windows 2003 server I'm getting the following
error:

System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT
E_FAIL has been returned from a call to a COM component. at
SpeechLib.SpVoiceClass.Speak(String Text, SpeechVoiceSpeakFlags Flags)

Also I give administrator rights for this site in windows 2003 server.
Can anyone please give me the best suggestion to resolve this issue.

The sample code is:
SpVoice objSpeech = new SpVoice();
string strFileName = Request.PhysicalApplicationPath +
"Student\\TestSpeech.wav";
SpFileStream objSpeechFS = new SpFileStream();
objSpeechFS.Open(strFileName,
SpeechStreamFileMode.SSFMCreateForWrite, false);
objSpeech.AudioOutputStream = objSpeechFS;
objSpeech.Speak(txtSpeech.Text,
SpeechVoiceSpeakFlags.SVSFlagsAsync);
objSpeech.WaitUntilDone(Timeout.Infinite);
objSpeechFS.Close();

Thanks in Advance.

Regards,
P.Murugesan
 
M

Munna

Hi

did you missed any component to install in the production server?
or did you missed any assembly dll to upload on production server?

regards

Munna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top