Share via


ISpRecoResult2::CommitAlternate (SAPI 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

Value
S_OK
E_INVALIDARG
SPERR_ENGINE_RESPONSE_INVALID
FAILED(hr)