读书人

ISpRecoContext:SetAdaptationData是干

发布时间: 2012-02-06 15:52:44 作者: rapoo

ISpRecoContext::SetAdaptationData是干什么用的?
最近一直想做一个语言识别的软件,可是看了一下sapi.chm帮助文档后,头越看越大啊,如果哪位好心人有中文帮助的话,能否共享一下?还有这个ISpRecoContext::SetAdaptationData具体是做什么用啊?帮助里面写着"passes a block of text to the SR engine which can be used to adapt the active language models.",可就是不明白什么是"adapt the active language models"

C/C++ code
     HRESULT hr = S_OK;    // get the "training" data, and break it into manageable chunks [e.g. an array of strings]    // ...    // set interest in the adaptation event    hr = cpRecoContext->SetInterest(SPFEI(SPEI_ADAPTATION), SPFEI(SPEI_ADAPTATION));    // Check hr    // adapt to each chunk of data    for (int i = 0; i < iCountOfDataChunk; i ++)    {       // send each chunk of data the engine       hr = cpRecoContext->SetAdaptationData(ppwszAdaptationData[i], wcslen(ppwszAdaptationData[i]));       // Check hr       // wait for the engine to ask for more data       hr = cpRecoContext->WaitForNotifyEvent(PROCESSING_WAIT_TIME);       // Check hr    }    // SR Engine has adapted its language model to data


[解决办法]
翻译成中文就可以了
[解决办法]
这个应该是用于语音训练时用于加载自定义训练文本时要用的吧!
[解决办法]
// get the "training" data, and break it into manageable chunks [e.g. an array of strings]
从这个理解应该是用于语音训练时用的,它将数据分成小段,估计是用于实现类似于语音训练文件那样分段训练的效果

读书人网 >C++ Builder

热点推荐