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"
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