Important: The information in this document is obsolete and should not be used for new development.
SRGetLanguageModel
You can use theSRGetLanguageModelfunction to get a recognizer's active language model.
pascal OSErr SRGetLanguageModel ( SRRecognizer recognizer, SRLanguageModel *languageModel);
recognizer- A recognizer.
languageModel- On exit, a reference to the language model currently active for the specified recognizer.
DESCRIPTION
TheSRGetLanguageModelfunction returns, in thelanguageModelparameter, a reference to the language model that is currently associated with the recognizer specified by therecognizerparameter.SPECIAL CONSIDERATIONS
SRGetLanguageModelincreases the reference count of the specified language model. You should call theSRReleaseObjectfunction to release the language model reference returned bySRGetLanguageModelwhen you're done using it.