Export (0) Print
Expand All

ISpRecoResult2::CommitAlternate (SAPI 5.3)

Speech API 5.3
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

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGOne of the parameters is invalid.
SPERR_ENGINE_RESPONSE_INVALIDArguments or data supplied by the engine are in an invalid format or are inconsistent.
FAILED(hr)Appropriate error message.
Show:
© 2014 Microsoft