Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpGrammarBuilder2::AddTextSubset
ISpGrammarBuilder2::AddTextSubset adds text for use with subset matching.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT AddTextSubset(</strong> <strong> SPSTATEHANDLE</strong> <em>hFromState</em>, <strong> SPSTATEHANDLE</strong> <em>hToState</em>, <strong> LPCWSTR</strong> <em>psz</em>, <strong> <a runat="server" href="jj127471(v=msdn.10).md">SPMATCHINGMODE</a></strong> **<em>eMatchMode</em> <strong>);</strong> </pre>
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.