【发布时间】:2020-06-11 04:56:20
【问题描述】:
它在本地系统上工作,但在实时服务器上不工作。我收到错误:
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)
【问题讨论】:
-
您是否使用了任何安装在本地而非服务器上的依赖项?
标签: c# asp.net asp.net-mvc-4 microsoft-speech-api microsoft-speech-platform