C# System.Speech Vs Microsoft.Speech使用情况
我正在学习语音识别。我用的是语音系统 代码如下:C# System.Speech Vs Microsoft.Speech使用情况,c#,speech-recognition,C#,Speech Recognition,我正在学习语音识别。我用的是语音系统 代码如下: var currentCulture = (from r in SpeechRecognitionEngine.InstalledRecognizers() where r.Culture.Equals(Thread.CurrentThread.CurrentCulture) select r.Culture).FirstOrD
var currentCulture = (from r in SpeechRecognitionEngine.InstalledRecognizers()
where r.Culture.Equals(Thread.CurrentThread.CurrentCulture)
select r.Culture).FirstOrDefault();
recognizer = new SpeechRecognitionEngine(currentCulture);
我得到的currentCulture等于null,因为在调试中我得到SpeechRecognitionEngine.InstalledRecognitors()。计数等于0
我发现这个问题:
他说他用Microsoft.Speech而不是System.Speech解决了这个问题
我在“引用->添加引用->程序集”中搜索,没有找到Microsoft.Speech。
尝试使用Nuget软件包管理器搜索Microsoft.Speech,但未找到它
通过谷歌搜索我找到了安装Microsoft的MSI软件包。演讲内容如下:
重新启动我的机器,我仍然在引用->添加引用->汇编中搜索,我没有找到Microsoft.Speech
现在我的疑问是:
Speech是一个类似但不同的API,提供“服务器”识别功能。它是单独下载的。请参阅“Microsoft语音平台”。服务器识别允许更高的性能,预期可供多个用户使用(如在电话系统中),并且不需要培训。如果您想从System.Speech获得意大利语,则必须使用。您需要了解的有关Microsoft的所有信息。演讲稿在下载详细信息中。关键点是它只在服务器上运行,并且您需要的SDK是单独下载的。如果您想从System.Speech下载意大利语,那么您必须下载。您需要了解的有关Microsoft的所有信息。演讲稿在下载详细信息中。关键点在于,它只在服务器上运行,并且您需要的SDK是单独下载的。