它在本地系统上工作,但不在实时服务器上工作。我收到错误:
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)