0

It is working on local system but not working on live server. I am getting error:

NullReferenceException: Object reference not set to an instance of an object.]
   System.Speech.Internal.ObjectTokens.SAPICategories.DefaultDeviceOut() +79
   System.Speech.Internal.Synthesis.VoiceSynthesis..ctor(WeakReference speechSynthesizer) +969
   System.Speech.Synthesis.SpeechSynthesizer.get_VoiceSynthesizer() +77
   System.Speech.Synthesis.SpeechSynthesizer.SetOutputToNull() +55
   System.Speech.Synthesis.SpeechSynthesizer.SetOutputStream(Stream stream, SpeechAudioFormatInfo formatInfo, Boolean headerInfo, Boolean closeStreamOnExit) +16
   System.Speech.Synthesis.SpeechSynthesizer.SetOutputToWaveStream(Stream audioDestination)
Yegor Androsov
  • 3,222
  • 1
  • 17
  • 28
  • Does this answer your question? [What is a NullReferenceException, and how do I fix it?](https://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix-it) – SᴇM Feb 27 '20 at 08:14
  • Are you using any dependencies which are installed locally and not on the server ? – Aditya Bhave Feb 27 '20 at 08:18

0 Answers0