Microsoft Speech Platform
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 | Description |
---|---|
S_OK | Function completed successfully. |
E_OUTOFMEMORY | Not enough memory to complete operation. |
Remarks
If not specified, the value for eMatchMode defaults to 1 (Subsequence).
Currently, you cannot specify the value 0 (AllWords) for eMatchMode.