Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.3
ISpRecoResult2::CommitAlternate
ISpRecoResult2::CommitAlternate instructs the alternate analyzer to update the speech recognition (SR) engine's acoustic and/or language model based on the alternate phrase, without updating the reco result.
HRESULT CommitAlternate(
ISpPhraseAlt *pPhraseAlt,
ISpRecoResult **ppNewResult
);
Parameters
- pPhraseAlt
The alternate to be used when updating the model. - ppNewResult
The recognizer returns a new result containing the alternate.
Return values
Value |
S_OK |
E_INVALIDARG |
SPERR_ENGINE_RESPONSE_INVALID |
FAILED(hr) |