简体   繁体   English

无法在通用Windows应用程序中使用System.Speech.Recognition命名空间

[英]Unable to use System.Speech.Recognition namespace in a Universal Windows App

I would like to use the SpeechRecognizer class from the System.Speech.Recognition namespace in a Universal Windows App. 我想使用Universal Windows App中System.Speech.Recognition命名空间中的SpeechRecognizer类。 It has more events and more other features than SpeechRecognizer defined in Windows.Media.SpeechRecognition. 它具有比Windows.Media.SpeechRecognition中定义的SpeechRecognizer更多的事件和更多其他功能。

However, when I reference System.Speech.dll, for access to System.Speech.Recognition, I am getting error "Cannot find type System.MarshalByRefObject in module CommonLanguageRuntimeLibrary". 但是,当我引用System.Speech.dll来访问System.Speech.Recognition时,出现错误“模块CommonLanguageRuntimeLibrary中找不到类型System.MarshalByRefObject”。

Is there a workaround to this or are classes defined in System.Speech.Recognition such as SpeechRecognizer and SpeechRecognitionEngine not meant to be used in Universal Windows Apps? 是否有解决方法,或者System.Speech.Recognition中定义的类(例如SpeechRecognizer和SpeechRecognitionEngine)不打算在通用Windows Apps中使用?

Thanks In Advance! 提前致谢!

This isn't supported in UWP apps. UWP应用程序不支持此功能。 ( using System.Speech.Synthesis with Windows10 universal app (XAML-C#) ) What feature or event you are looking for exactly? 将System.Speech.Synthesis与Windows10通用应用程序(XAML-C#)结合使用 )您正在寻找什么功能或事件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM