Compartir a través de


ISpRecoGrammar2::SetGrammarLoader (SAPI 5.3)

Microsoft Speech API 5.3

ISpRecoGrammar2::SetGrammarLoader

ISpRecoGrammar2::SetGrammarLoader is used to pass a pointer to an ISpeechResourceLoader interface into SAPI to override SAPI's default grammar loading function. Applications that wish to perform grammar loading, rather than leave this to SAPI, can do so by implementing ISpeechResourceLoader.

  
    HRESULT SetGrammarLoader(
   ISpeechResourceLoader    *pLoader
);

Parameters

  • pLoader
    The pointer to the ISpeechResourceLoader interface implemented by an application.

Return values

Value
S_OK
E_POINTER
SPERR_NOT_SUPPORTED_FOR_SHARED_RECOGNIZER
E_NOTIMPL