|
| Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab. |
You are reading help file online using chmlib.com
|
Microsoft Speech SDK
SAPI 5.1
ISpSREngine::OnCreateGrammar
ISpSREngine::OnCreateGrammar creates a new recognition grammar. Each grammar belongs to a recognition context and can contain dictation, CFG, or proprietary grammar information. The engine can associate a pointer with each grammar that is then passed back to the engine in other methods using this grammar.
HRESULT OnCreateGrammar(
void *pvEngineRecoContext,
SPGRAMMARHANDLE hSAPIGrammar,
void **ppvEngineGrammar
);
Parameters
- pvEngineRecoContext
- [in] The engine's recognition context pointer indicating the context this grammar belongs to. This is the value that the engine passes back to SAPI in the OnCreateRecoContext method.
- hSAPIGrammar
- [in] Unique handle to the grammar.
- ppvEngineGrammar
- [out] The engine should set the contents of this to an arbitrary pointer containing any information the engine has associated with this grammar.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
FAILED(hr) |
Appropriate error message. |
You are reading help file online using chmlib.com
|
If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com