Important: The information in this document is obsolete and should not be used for new development.
SRSetLanguageModel
You can use theSRSetLanguageModel
function to set a recognizer's active language model.
pascal OSErr SRSetLanguageModel ( SRRecognizer recognizer, SRLanguageModel languageModel);
recognizer
- A recognizer.
languageModel
- A language model.
DESCRIPTION
TheSRSetLanguageModel
function sets the active language model for the recognizer specified by therecognizer
parameter to the model specified by thelanguageModel
parameter. 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
SRSetLanguageModel
with a different language model causes the current one to be released.