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 / Manipulating Language Objects


SRNewLanguageObjectFromHandle

You can use the SRNewLanguageObjectFromHandle function to create a language object from the handle previously created by the SRPutLanguageObjectIntoHandle function.

pascal OSErr SRNewLanguageObjectFromHandle (
SRRecognitionSystem system,
SRLanguageObject *languageObject, 
Handle lobjHandle);
system
A recognition system.
languageObject
On exit, a reference to a new language object.
lobjHandle
A handle to a language object.
DESCRIPTION
The SRNewLanguageObjectFromHandle function returns, in the languageObject parameter, a reference to a new language object created and initialized using the private data to which the lobjHandle parameter is a handle. 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.

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

SPECIAL CONSIDERATIONS
You should call the SRReleaseObject function to release the language object reference returned by SRNewLanguageObjectFromHandle when you're done using it.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997