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.SL开发者_StackOverflow社区OStatic);
//grammar.CmdLoadFromFile("E:\\Speech RecognitionByp\\SpeechRecognitionByp@bengaliGramme.xml",SpeechLib.SpeechLoadOption.SLODynamic);
grammar.CmdSetRuleIdState(0, SpeechRuleState.SGDSActive);
The error means SPERR_UNSUPPORTED_FORMAT - this can only be resolved by correcting the format of your file...
精彩评论