如何在WinForm或控制台项目中引用Windows.Media命名空间?
目前在尝试做语音合成方面的东西,已经在Winform中使用过System.Speech 和 Microsoft.Speech了,现在希望试试用Windows.Media.SpeechSynthesis来做语音合成,但是在控制台或Winform项目中无法引用Windows.Media.SpeechSynthes命名空间,只有在Windows Store App项目中才可以引用。
找了一下,该文件的位置是“C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral",有Windows.winmd和Windows.xml两个文件,但是这两个文件无法在Winform项目的Reference中添加。
看起来Windows.Media.SpeechSynthesis是在Win App中使用的命名空间,那么问题来了,到底它可不可以用到控制台、Winform这些项目中?可以的话,怎么引用?