Carbon


SRNewLanguageObjectFromHandle

Header: SpeechRecognition.h Carbon status: Supported

Creates a language object from the handle previously created by the SRPutLanguageObjectIntoHandle function.

OSErr SRNewLanguageObjectFromHandle (
    SRRecognitionSystem system, 
    SRLanguageObject *languageObject, 
    Handle lObjHandle
);
Parameter descriptions
system

A recognition system.

languageObject

On return, a reference to a new language object created and initialized using the private data to which the lobjHandle parameter is a handle.

lObjHandle

A handle to a language object. The data specified by lobjHandle should have been created by a previous call to the SRPutLanguageObjectIntoHandle function; if that data is not appropriately formatted, SRNewLanguageObjectFromHandle returns the result code kSRCantReadLanguageObject as its function result.

function result

A result code.

DISCUSSION

You can use this function to load language objects from resources (for example, by using the Resource Manager function GetResource).

You should call the SRReleaseObject function to release the language object reference returned by SRNewLanguageObjectFromHandle 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)