【发布时间】:2013-11-26 08:30:08
【问题描述】:
这是我在尝试运行时不断收到的错误消息:
recognitionEngine.LoadGrammar(GrammarBuilder());
错误:
The language for the grammar does not match the language of the speech recognizer.
我已经为此搜索了很多,但我似乎找不到答案!
我在语音识别属性中有两种语言选项:
- Microsoft Speech Recognizer 8.0 for Windows(英语 - 英国)
- Microsoft Speech Recognizer 8.0 for Windows(英语 - 美国)。
只有当我将设置设置为英语 - 美国时,我的代码才能工作。
Microsoft Visual C# 2010 Express 上是否有隐藏设置可以让我将其从美国更改为英国?
【问题讨论】:
-
我已经编辑了你的标题。请参阅“Should questions include “tags” in their titles?”,其中的共识是“不,他们不应该”。
标签: c# speech-recognition