开发者

how to create a grammar containing the text to train

开发者 https://www.devze.com 2023-03-22 04:29 出处:网络
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 transcri

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

精彩评论

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

关注公众号