我正在使用 C#.Net 开发语音识别引擎,以开发孟加拉语的语音到文本。我曾多次尝试将语法文件加载到语音引擎中。 但它向我显示了错误。我该如何解决这个问题?
我的XML语法加载代码是
grammar.CmdLoadFromFile(appPath + FileName, SpeechLib.SpeechLoadOption.SLOStatic);
//grammar.CmdLoadFromFile("E:\\Speech RecognitionByp\\<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1447647171777c4671777b737a7d607d7b7a566d645476717a7375787d5366757979713a6c7978" rel="noreferrer noopener nofollow">[email protected]</a>",SpeechLib.SpeechLoadOption.SLODynamic);
grammar.CmdSetRuleIdState(0, SpeechRuleState.SGDSActive);
最佳答案
该错误意味着SPERR_UNSUPPORTED_FORMAT - 这只能通过更正文件格式来解决...
关于xml - HRESULT : 0x80045003 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7136996/