Share via


ISpSREngine2::SetGrammarPrefix (SAPI 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

Value
S_OK
E_NOINTERFACE