Carbon


SRGetLanguageModel

Header: SpeechRecognition.h Carbon status: Supported

Gets a recognizer’s active language model.

OSErr SRGetLanguageModel (
    SRRecognizer recognizer, 
    SRLanguageModel *languageModel
);
Parameter descriptions
recognizer

A recognizer.

languageModel

On return, a reference to the language model currently active for the specified recognizer.

function result

A result code.

DISCUSSION

SRGetLanguageModel increases the reference count of the specified language model. You should call the SRReleaseObject function to release the language model reference returned by SRGetLanguageModel when you are done using it.

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)