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


SRNewWord

You can use the SRNewWord function to create a new word.

pascal OSErr SRNewWord (
SRRecognitionSystem system, 
SRWord *word, 
const void *text, 
Size textLength);
system
A recognition system.
word
On exit, a reference to a new word associated with the specified recognition system.
text
The address of a buffer that contains the characters that comprise the word.
textLength
The size, in bytes, of the specified text.
DESCRIPTION
The SRNewWord function returns, in the word parameter, a reference to a new word associated with the recognition system specified by the system parameter. The word's spelling is specified by the text and textLength parameters.

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


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997