Carbon


SRSetLanguageModel

Header: SpeechRecognition.h Carbon status: Supported

Sets a recognizer’s active language model.

OSErr SRSetLanguageModel (
    SRRecognizer recognizer, 
    SRLanguageModel languageModel
);
Parameter descriptions
recognizer

A recognizer.

languageModel

The language model you wish to become the active model for the specified recognizer.

function result

A result code.

DISCUSSION

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.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)