HRESULT 异常:0x80045003
我正在使用 C#.Net 开发语音识别引擎,以开发孟加拉语的语音到文本。我曾多次尝试将语法文件加载到语音引擎中。 但它向我显示了错误。我该如何解决这个问题?
我的 XML 语法加载代码是
grammar.CmdLoadFromFile(appPath + FileName, SpeechLib.SpeechLoadOption.SLOStatic);
//grammar.CmdLoadFromFile("E:\\Speech RecognitionByp\\[email protected]",SpeechLib.SpeechLoadOption.SLODynamic);
grammar.CmdSetRuleIdState(0, SpeechRuleState.SGDSActive);
I am using C#.Net to develop the Speech recognition engine to develop speech to text in Bangla. I have tried several times to load the grammar file to the speech engine.
But it shows me the error. How I can resolve this problem?
My XML grammar loading code is
grammar.CmdLoadFromFile(appPath + FileName, SpeechLib.SpeechLoadOption.SLOStatic);
//grammar.CmdLoadFromFile("E:\\Speech RecognitionByp\\[email protected]",SpeechLib.SpeechLoadOption.SLODynamic);
grammar.CmdSetRuleIdState(0, SpeechRuleState.SGDSActive);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该错误意味着 SPERR_UNSUPPORTED_FORMAT - 这可以只能通过更正文件的格式来解决...
The error means SPERR_UNSUPPORTED_FORMAT - this can only be resolved by correcting the format of your file...