问题描述
我想在通用 Windows 应用程序中使用 System.Speech.Recognition 命名空间中的 SpeechRecognizer 类.与 Windows.Media.SpeechRecognition 中定义的 SpeechRecognizer 相比,它具有更多事件和更多其他功能.
I would like to use the SpeechRecognizer class from the System.Speech.Recognition namespace in a Universal Windows App. It has more events and more other features than SpeechRecognizer defined in Windows.Media.SpeechRecognition.
但是,当我引用 System.Speech.dll 以访问 System.Speech.Recognition 时,出现错误在 CommonLanguageRuntimeLibrary 模块中找不到类型 System.MarshalByRefObject".
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.Recognition 中定义的类(例如 SpeechRecognizer 和 SpeechRecognitionEngine)不打算在通用 Windows 应用中使用?
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?
提前致谢!
推荐答案
这在 UWP 应用中不受支持.(使用 System.Speech.Synthesis 与 Windows10 通用应用程序 (XAML-C#)) 您正在寻找什么功能或事件?
This isn't supported in UWP apps. (using System.Speech.Synthesis with Windows10 universal app (XAML-C#)) What feature or event you are looking for exactly?
这篇关于无法在通用 Windows 应用程序中使用 System.Speech.Recognition 命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!