Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ISpSREngine2::SetGrammarPrefix (SAPI 5.3)

Speech API 5.3
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

ValueDescription
S_OKFunction completed successfully.
E_NOINTERFACEInterface not supported by the engine.
Show:
© 2015 Microsoft