Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.3
ISpSREngine2::SetGrammarPrefix
ISpSREngine2::SetGrammarPrefix specifies a prefix word that the recognizer should recognize before any paths in the grammar.
HRESULT SetGrammarPrefix(
void *pvEngineGrammar,
LPCWSTR pszPrefix,
BOOL fIsPrefixRequired
);
Parameters
- pvEngineGrammar
Pointer to the grammar. - pszPrefix
The prefix word. - fIsPrefixRequired
Whether the prefix word is required to be uttered.
Return values
| Value |
| S_OK |
| E_NOINTERFACE |