Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Speech Recognition Manager /
Chapter 1 - Speech Recognition Manager / Speech Recognition Manager Reference
Speech Recognition Manager Routines / Creating and Manipulating Recognizers


SRSetLanguageModel

You can use the SRSetLanguageModel function to set a recognizer's active language model.

pascal OSErr SRSetLanguageModel (
SRRecognizer recognizer, 
SRLanguageModel languageModel);
recognizer
A recognizer.
languageModel
A language model.
DESCRIPTION
The SRSetLanguageModel function sets the active language model for the recognizer specified by the recognizer parameter to the model specified by the languageModel 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997