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

  • Thread starter Thread starter MurugesanP
  • Start date Start date
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
 
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
 
Back
Top