Share via


ISpGrammarBuilder2::AddTextSubset (SAPI 5.3)

Microsoft Speech API 5.3

ISpGrammarBuilder2::AddTextSubset

ISpGrammarBuilder2::AddTextSubset adds text for use with subset matching.

  
    HRESULT AddTextSubset(
   SPSTATEHANDLE    hFromState,
   SPSTATEHANDLE    hToState,
   LPCWSTR           psz,
   SPMATCHINGMODE **eMatchMode
);

Parameters

  • hFromState
    [in] Handle of the state from which the arc should originate.
  • hToState
    [in] Handle of the state where the arc should terminate.
  • psz
    [in] The text subset to be matched.
  • eMatchMode
    [in] The subset matching mode.

Return values

Value
S_OK
E_OUTOFMEMORY