开发者

how to create a grammar containing the text to train

I've read the blog of Eric about How to train the SAPI recognizer, and followed the pseudocode. But I don't know how to create a grammar containing the text to train. Now I have the correct transcript of the audio, but I don't know how to connect this correct transcript file to the grammar. Do I need to c开发者_Go百科reate a XML file? Could you tell me the interface name? Thank you so much.


Read the transcript file into a string, and then use ISpGrammarBuilder::AddWordTransition to define a simple grammar containing the string. Then process the audio from the wavefile, and you should get a recognition event.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜