ISpRecoResult2::CommitAlternate (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_INVALIDARG One of the parameters is invalid.
SPERR_ENGINE_RESPONSE_INVALID Arguments or data supplied by the engine are in an invalid format or are inconsistent.
FAILED(hr) Appropriate error message.