Important: The information in this document is obsolete and should not be used for new development.
SRSetLanguageModel
You can use theSRSetLanguageModelfunction to set a recognizer's active language model.
pascal OSErr SRSetLanguageModel ( SRRecognizer recognizer, SRLanguageModel languageModel);
recognizer- A recognizer.
languageModel- A language model.
DESCRIPTION
TheSRSetLanguageModelfunction sets the active language model for the recognizer specified by therecognizerparameter to the model specified by thelanguageModelparameter. See "Creating Language Objects," beginning on page 1-67 for routines you can use to build a language model.If no other references exist to the language model currently in use by the specified recognizer, calling
SRSetLanguageModelwith a different language model causes the current one to be released.