ISpRecoGrammar2::SetDictationWeight (SAPI 5.4)

Microsoft Speech API 5.4

ISpRecoGrammar2::SetDictationWeight

ISpRecoGrammar2::SetDictationWeight sets the weight on the dictation rule.

  
    HRESULT SetDictationWeight(
   float   flWeight
);

Parameters

  • flWeight
    A floating point number between 0 and 1. A higher number biases the recognizer to favour dictation over CFG rules when the developer knows that dictation is more likely to be uttered than the rule (or vice versa).

Return values

Value
S_OK
E_INVALIDARG
FAILED(hr)