Export (0) Print
Expand All

ISpRecoGrammar2::SetGrammarLoader (SAPI 5.3)

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

ValueDescription
S_OKFunction completed successfully.
E_POINTERpLoader is invalid.
SPERR_NOT_SUPPORTED_FOR_SHARED_RECOGNIZERThe method called is not supported for the shared recognizer.
E_NOTIMPLThe interface is not implemented.
Show:
© 2014 Microsoft