Export (0) Print
Expand All

ISpRecoGrammar2::LoadCmdFromFile2 (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpRecoGrammar2::LoadCmdFromFile2

ISpRecoGrammar2::LoadCmdFromFile2 loads a SAPI 5 grammar from a file and extends the ISpRecoGrammar::LoadCmdFromFile function.


HRESULT LoadCmdFromFile2(
   LPCWSTR           pszFileName,
   SPLOADOPTIONS     Options,
   LPCWSTR           pszSharingUri,
   LPCWSTR           pszBaseUri 
);

Parameters

pszFileName
The file name of the grammar.
Options
Flag of type SPLOADOPTIONS indicating whether the grammar will be modified dynamically.
pszSharingUri
Indicates that it is a dynamic shared grammar. Other grammars in the same recognizer can reference this grammar at runtime using this URI.
pszBaseUri
The base path that any relative rule references within the grammar are resolved against.

Return values

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGOne of the parameters is invalid.
FAILED(hr)Appropriate error message.
Show:
© 2014 Microsoft