ISpRecoGrammar2::SetGrammarLoader (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_POINTER pLoader is invalid.
SPERR_NOT_SUPPORTED_FOR_SHARED_RECOGNIZER The method called is not supported for the shared recognizer.
E_NOTIMPL The interface is not implemented.