2

我尝试使用 System.Speech.Synthesis 中的 SpeechSynthesizer,因为它似乎比我之前使用的 (Windows.Media.SpeechSynthesis) 更全面:我希望能够设置音量、声音的性别,...此外,法语发音有一些错误,所以我想检查 System.Speech 是否更好。

我添加了参考,但构建给出了这个错误,我无法修复它:

Cannot find type System.MarshalByRefObject in module CommonLanguageRuntimeLibrary.
4

1 回答 1

1

没有真正的方法可以在 WinRT 应用程序中使用 .NET API System.Speech.Synthesis,而无需创建最终无法通过 WACK 提交测试的应用程序。

许多 .NET 命名空间尚未投射到 WinRT 中。特别是 System.Speech.*,因为已经有 Windows.Media.SpeechSynthesis 和 Windows.Media.SpeechRecognition,它们是从 windows phone API 命名空间带来的,并且对于大多数用途来说应该是功能完整的。

只有属于.NETCore 配置文件的旧 .NET API已投影到 WinRT。

于 2015-09-04T04:36:29.933 回答